public FontMapper Clone() { FontMapper fm = new FontMapper(textFont.FontFamily.Name, textFont.Size); fm.textBrush = textBrush.Clone(); fm.alignment = alignment; fm.lineAlignment = lineAlignment; return(fm); }
public override void PaintValue(PaintValueEventArgs e) { FontMapper fm = (FontMapper)e.Value; TextRenderingHint trh = e.Graphics.TextRenderingHint; e.Graphics.TextRenderingHint = TextRenderingHint.AntiAlias; fm.DrawString("A", e.Graphics, e.Bounds); e.Graphics.TextRenderingHint = trh; base.PaintValue(e); }