How to apply font anti-alias effects in CSS?

Mehar picture Mehar · Jul 25, 2013 · Viewed 217.2k times · Source

How can we apply Photoshop-like font anti-aliasing such as crisp, sharp, strong, smooth in CSS?

Are these supported by all browsers?

Answer

Gildas.Tambo picture Gildas.Tambo · Jul 26, 2013

here you go Sir :-)

1

.myElement{
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

2

.myElement{
    text-shadow: rgba(0,0,0,.01) 0 0 1px;
}