public static void DrawGlyph(XGraphics g, Glyph glyph, FontCache styleRes, XBrush brush, float x, float y) { XFont font = glyph.Font == GlyphFont.Ding ? styleRes.WingdingFont : styleRes.GlyphFont; g.DrawString(glyph.Characters, font, brush, x, y, StringFormatCentered); }
public Glyph(Glyph other, bool highlight = false, GlyphBias bias = GlyphBias.None) { Characters = other.Characters; IsHighlighted = highlight; Bias = bias; }