Exemplo n.º 1
0
        public FontMapper Clone()
        {
            FontMapper fm = new FontMapper(textFont.FontFamily.Name, textFont.Size);

            fm.textBrush     = textBrush.Clone();
            fm.alignment     = alignment;
            fm.lineAlignment = lineAlignment;
            return(fm);
        }
Exemplo n.º 2
0
        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);
        }