Christoph
Christoph

Reputation: 542

Draw thin text with DrawString()?

I draw text on a picturebox with:

Point text_point = new Point(0, i);
Font drawFont = new Font("Arial", 12, FontStyle.Regular, GraphicsUnit.Pixel);
SolidBrush drawBrush = new SolidBrush(Color.Black);
g.DrawString(Convert.ToString(i), drawFont, drawBrush, text_point);

... but the text is always drawn 'thick' like this:

84

How can I get it to look like: 84 ?

Upvotes: 2

Views: 1580

Answers (1)

Yami
Yami

Reputation: 1425

Try:

Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;

Upvotes: 6

Related Questions