public TextLayoutGlyph(TextLayoutLine line, FontGlyph glyph, int index, float x) { this.line = line; this.glyph = glyph; this.index = index; this.x = x; }
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); }