Mare Infinitus
Mare Infinitus

Reputation: 8182

Text effect to enhance readability of small fonts

In a view I have a smaller font, foreground is white and background is dark grey.

At the moment I use a drop shadow effect like

 <DropShadowEffect BlurRadius="0"
    Opacity="0.99"
    ShadowDepth="1"
    Direction="270"
    Color="Black"

This looks zoomed as this:

picture of text effect

It works good on bigger fontsizes, but not very good on small scales as can be seen here:

Picture of smaller size text effect

What would be a good text effect to enhance overall readability?

I found this question which uses an outer stroke around the text, but it does not work at all on smaller fontsizes.

Upvotes: 3

Views: 643

Answers (1)

Samuel
Samuel

Reputation: 6490

For completeness:

As@sa_ddam213 said use TextFormattingMode. Furthermore you can experiment with the Anti-Aliasing algorithms via TextRenderingMode. If you use ClearType, you can additionally experiment with ClearTypeHint.

Alternatives are use larger text or a font specially designed for small sizes like a pixel font.

Upvotes: 3

Related Questions