Text rendering options in WPF/XAML Control placement of characters
29-12-2015 18:25:39
XAML / Basics
0 Bookmark(s)
287 View(s)
Characters of a word in WPF are placed by it's ideal position by default. This makes larger textst look well equalized and harmonic. But it could lead to a more blurried result for smaller font sizes, because the characters will end up beeing positioned between two pixels.
Since WPF 4.0 you can control this by setting the TextOptions.TextFormattingModeproperty on any element.
This text is well equalized
This text is displayed sharp
Control anti aliasing
Rendered with ClearType
Grayscaled only
Aliased