font smoothing CSS - but for windows?

user1227914 picture user1227914 · Apr 10, 2015 · Viewed 7.7k times · Source

The following code makes my text look so much prettier on Mac:

html, body {
    -moz-osx-font-smoothing: grayscale;
}

But it doesn't work on Windows. Is there anything that works the same way for Windows?

Answer

jokarl picture jokarl · Apr 10, 2015

Font smoothing is not a standard and there is no guarantee it will work for all of your users. You also have ClearType on Windows that handles the crisp font in at least Internet Explorer.

If you insist on using this you can see browser compatability here.

Also it should work in Chrome with this:

-webkit-font-smoothing: antialiased;

Hope this answers your question.