wpf text blurry blues?

Published 29 October 09 02:48 PM | Coding4Fun 

wpf4text

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.

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Mat said on October 29, 2009 2:55 PM:

The picture is not live. Thanks.

# Coding4Fun said on October 29, 2009 3:10 PM:

@Mat, saw that a few minutes after I posted it, thanks for the heads up.  Should be fixed now.

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker