Tag Archives: smooth text

Get font size in pixels in C#

One oddity of the Font class is that its Size property returns font size in the units that were used to create the font. The Font class’s Unit property tells you the units used to create the font, but if … Continue reading

Posted in drawing, fonts, graphics | Tagged , , , , , , , , , , , , , , | Leave a comment

Draw smooth text in a GraphicsPath in C#

You can set a Graphics object’s TextRenderingHint property to AntiAliasGridFit to draw smooth text. However, if you place text in a GraphicsPath object and draw the GraphicsPath, then the TextRenderingHint property doesn’t give you smooth text. Instead you need to … Continue reading

Posted in drawing, fonts, graphics | Tagged , , , , , , , , , , , , , | 1 Comment

Draw smooth graphics in C#

This example shows how to draw smooth graphics such as text, resized images, lines, and shapes. When drawing, C# sometimes favors speed over quality. If you look closely at the picture shown here, you’ll see that the text, image, and … Continue reading

Posted in drawing, fonts, graphics | Tagged , , , , , , , , , , , , , , , , , | Leave a comment