In Silverlight 5 you may make your application look better by changing the way fonts are rendered. You make this change by applying some additional setting in your App.xaml.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<!-- Control the way glyphs are generated. You can set either *Ideal* (nicer for larger fonts) or *Display* (nicer for small ones) --> <TextFormattingMode x:Key="NormalTextFormattingMode">Display</TextFormattingMode> <!-- Allows to disable text optimization - recommended setting is *Fixed* (improved readability) than *Animated* (optimized for animations) --> <TextHintingMode x:Key="NormalTextHintingMode">Fixed</TextHintingMode> <!-- Controls font antialiasing setting. You can set: *Allased* (turns off antialiasig), *ClearType*, *Grayscale* (anialiases font using grayscale), *Auto* (tries to guess the best setting for you) --> <TextRenderingMode x:Key="NormalTextRenderingMode">ClearType</TextRenderingMode> <Style TargetType="TextBlock"> <Setter Property="TextOptions.TextFormattingMode" Value="{StaticResource NormalTextFormattingMode}" /> <Setter Property="TextOptions.TextHintingMode" Value="{StaticResource NormalTextHintingMode}" /> <Setter Property="TextOptions.TextRenderingMode" Value="{StaticResource NormalTextRenderingMode}" /> </Style> |
The whole instruction regarding this topic was described here.