System.Windows.Forms.TextRenderer draws blurry text when rendering to bitmap

March 17, 2009

Symptom:

Blurry text is drawn by TextRenderer class when rendering to device context associated with bitmap. It occurs at systems when ClearType is enabled.

How to fix:

Use TextRenderer.DrawText overloads requiring backColor parameter and pass them background color used for font aliasing.