public void Append(CharInfo ci, Color?color) { var render = new GlyphRender(ci, this, color); _glyphRenders.Add(render); _dirty = true; _text += ci.Value; }
public int?GetIndexByGlyphRender(GlyphRender glyphRender) { var strings = Strings; var ch = 0; foreach (var si in strings) { foreach (var gr in si.GlyphRenders) { if (gr == glyphRender) { return(ch); } ++ch; } } return(null); }