用DrawString()绘制细文本?

时间:2013-06-11 09:36:26

标签: c# .net

我在图片框上绘制文字:

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);

...但是文字总是像这样画得“厚”:

84

我怎样才能看起来像:84?

1 个答案:

答案 0 :(得分:6)

尝试:

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