Question

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.

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top