public Paragraph(int index, float maxWidth) { Index = index; Top = index; BreakWidth = maxWidth; m_Glyphs = new GlyphList(); m_Breaks = new BreakList(); }
public void RefreshGlyphs(IGUIFont font, SpecialCharacterFlags flags) { GlyphList glyphs = new GlyphList(); foreach (GlyphChar g in Glyphs) { glyphs.AddLast(font.GetGlyph(g.Char, flags)); } Concurrency.LockFreeUpdate(ref m_Glyphs, glyphs); NeedsWordWrap = true; }