示例#1
0
        public override string ToString()
        {
            var stbuilder = new StringBuilder();

            stbuilder.Append("class=" + GlyphClass.ToString());
            if (MarkClassDef != 0)
            {
                stbuilder.Append(",mark_class=" + MarkClassDef);
            }
            return(stbuilder.ToString());
        }
示例#2
0
文件: Glyph.cs 项目: zwcloud/ImGui
        public override string ToString()
        {
            var stbuilder = new StringBuilder();

            if (IsCffGlyph)
            {
                stbuilder.Append("cff");
                stbuilder.Append(",index=" + GlyphIndex);
                stbuilder.Append(",name=" + _cff1GlyphData.Name);
            }
            else
            {
                stbuilder.Append("ttf");
                stbuilder.Append(",index=" + GlyphIndex);
                stbuilder.Append(",class=" + GlyphClass.ToString());
                if (MarkClassDef != 0)
                {
                    stbuilder.Append(",mark_class=" + MarkClassDef);
                }
            }
            return(stbuilder.ToString());
        }