コード例 #1
0
ファイル: SpaceAtom.cs プロジェクト: cubemaster21/CALA-Unity
        public static Box CreateGlueBox(CharType leftType, CharType rightType, TexStyle style)
        {
            float width = TEXPreference.main.GetGlue(leftType, rightType) + TexUtility.AdditionalGlueSpace;

            if (width != 0)
            {
                return(TexUtility.GetBox(SpaceAtom.Get(true, width, 0, 0), style));
            }
            return(null);
        }
コード例 #2
0
        public static Box CreateGlueBox(CharType leftType, CharType rightType)
        {
            float width = TEXPreference.main.GetGlue(leftType, rightType) + TexContext.Kerning.value;

            if (width != 0)
            {
                return(TexUtility.GetBox(Get(true, width, 0, 0)));
            }
            return(null);
        }