Hussein Khalil
Hussein Khalil

Reputation: 1615

Font scaling issues in WPF

I'm currently developing an application in WPF (.NET 4 / VS 2010) and I'm experiencing issues related to font scaling.

In short, the text in my application is often deformed or doesn't represent what it should look like "typically".

You can see an example of the problem here, taken from a control using the Helvetica Neue LT Pro font, at a size of 12:

https://i.sstatic.net/kx6wm.jpg

Here's another example, with a font size of 9:

https://i.sstatic.net/NGFAt.jpg

I tried changing the text formatting mode as suggered (i.e.: TextOptions.TextFormattingMode="Display"), but that didn't help.

Is there anything that I can do to help improve the font rendering ? Are there a set of fonts that are optimized for WPF that scale well ?

Should I just stick with "ClearType" fonts ?

Upvotes: 0

Views: 565

Answers (1)

Chris Shain
Chris Shain

Reputation: 51309

You may want to check out the recommendations for font clarity in WPF listed here: http://windowsclient.net/wpf/white-papers/wpftextclarity.aspx

Specifically, it looks like you might be seeing the one described under the "Aliasing Text" header.

Upvotes: 1

Related Questions