WPF Text Rendering Optimization (Text of WPF application is blurry or pixelated)

Situation
You’re building a WPF application.

Problem
Some text is rendered blurry or pixelated.

Solution
Modify the text render options corresponding to your needs.

Properties you can set on any UIElement:

  • TextOptions.TextFormattingMode
  • TextOptions.TextRenderingMode
  • TextOptions.TextHintingMode

A settings that has worked for me very well is TextOptions.TextFormattingMode=”Display”.

These settings are inherited by all sub-elements so it’s okay to just set them on the root element of every control.

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.