Is there a simple way to provide antialiasing to all labels in an app or to the app as a whole? I can do it on individual labels by overriding the paint with the following. I was just wondering if there is a better way of doing this before writing a function to override all event handlers for the labels
private static void AntiAliasLabel(object sender, PaintEventArgs e)
{
Label lbl = (Label)sender;
Graphics g2 = e.Graphics;
Font fnt = lbl.Font;
g2.TextRenderingHint = TextRenderingHint.AntiAlias;
Thanks
g2.DrawString(lbl.Text, fnt, Brushes.Black, 0, 0);
}
private static void AntiAliasLabel(object sender, PaintEventArgs e)
{
Label lbl = (Label)sender;
Graphics g2 = e.Graphics;
Font fnt = lbl.Font;
g2.TextRenderingHint = TextRenderingHint.AntiAlias;
Thanks
g2.DrawString(lbl.Text, fnt, Brushes.Black, 0, 0);
}