Пример #1
0
 public TextLayoutGlyph(TextLayoutLine line, FontGlyph glyph, int index, float x)
 {
     this.line  = line;
     this.glyph = glyph;
     this.index = index;
     this.x     = x;
 }
Пример #2
0
        public void Add(FontGlyph glyph, int glyphIndex)
        {
            if (!glyph.IsEmpty)
            {
                advance = true;
            }

            glyphs.Add(new TextLayoutGlyph(this, glyph, glyphIndex, width));
            if (advance)
            {
                width += glyph.Width;
            }
            height = Math.Max(height, glyph.Height);
        }