charri / Font-Awesome-WPF

FontAwesome controls for WPF+UWP
MIT License
533 stars 145 forks source link

Use grayscale antialiasing #52

Open BelikovSergey opened 6 years ago

BelikovSergey commented 6 years ago

Hi!

I notice that it uses ClearType (colored) antialiasing to render icons. Which is good for text, but bad for icons. Is there a way to use grayscale antialiasing? cleartype

chucker commented 5 years ago

If you use <FontAwesome> as the control, then you can set TextOptions.TextRenderingMode="Grayscale". (There doesn't appear to be an equivalent for <ImageAwesome>.)

For example:

<fa5:FontAwesome Icon="Solid_History" FontSize="16" 
                 TextOptions.TextRenderingMode="Grayscale" TextOptions.TextFormattingMode="Ideal" />