Exemple #1
0
 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);
 }
Exemple #2
0
 public Glyph(Glyph other, bool highlight = false, GlyphBias bias = GlyphBias.None)
 {
     Characters    = other.Characters;
     IsHighlighted = highlight;
     Bias          = bias;
 }