How to use clear type font in C#/VB.net ?
+2
A:
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawString("Normal style", this.Font, Brushes.Black, 50, 50);
e.Graphics.TextRenderingHint =
System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
e.Graphics.DrawString("ClearType style", this.Font, Brushes.Black, 50, 100);
}
Laplace
2010-05-28 12:37:19