wpf text blurry blues?
- Posted: Oct 29, 2009 at 11:48 AM
- 618 Views
- 2 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Have you hated how WPF has blurry text depending on what happens? Well, .Net 4.0 and WPF 4.0 fixes that. If you try out a version after Visual Studio 2010 beta 2, you can use these fixes as well. The MSDN Text blog outlines how to fix your text and the why / how of some of the blurriness. A lot comes from display screens not having a high enough DPI and subpixel rendering. But enough excuses and how can you fix it? Here is an example of how to do the look of the picture above.
<StackPanel> <TextBlock> Hello World ... Ideal text formatting </TextBlock> <TextBlock TextOptions.TextFormattingMode="Display"> Hello World ... Display text formatting </TextBlock> </StackPanel>
The blog posting talks about additional settings as well.