public GlueProperty InterletterGlueJP(UChar letterBefore, float zwSizeBefore, UChar letterAfter, float zwSizeAfter) { //最優先は分離禁止。 if (CC.Cl08(letterBefore, letterAfter)) { return(new GlueProperty(0, 0, 0)); } else { //それ以外の場合について検査 float zwSpaceSize; float baseSize; InterletterSpaceJP(letterBefore, zwSizeBefore, letterAfter, zwSizeAfter, out zwSpaceSize, out baseSize); return(new GlueProperty(zwSpaceSize, _standardStretchJPByZw, zwSpaceSize + _standardShrinkJPByZw) * baseSize); } }
/// <summary> /// 分割禁止 /// </summary> private static bool DoViolateUnbreakableCharactersRule(UChar proceeding, UChar following) { return(CC.Cl08(proceeding, following)); }