The -webkit-font-smoothing property does not work in Chrome

I am trying to control the anti-glare compression of Google Chrome fonts (terrible) using the CSS -webkit-font-smoothing property, but this has absolutely no effect on the text.

 <div style="font-size: 42px"> <p style="-webkit-font-smoothing: subpixel-antialiased">This is a font test.</p> <p style="-webkit-font-smoothing: antialiased">This is a font test.</p> <p style="-webkit-font-smoothing: none">This is a font test.</p> </div> 

I compared pixels in Photoshop, and all three are exactly the same. Does Chrome no longer support this property?

+11
css google-chrome fonts
Sep 13 '13 at 12:53 on
source share
5 answers

https://productforums.google.com/forum/?fromgroups=#!topic/chrome/0vqp1bnkaoE

-webkit-font-smoothing no longer works. The Google Chrome team intentionally changed this behavior. It seems that font smoothing was not applied β€œcorrectly” on OSX in previous versions.

+13
Sep 13 '13 at 12:59 on
source share

Well, you're right. Font smoothing is no longer supported. This is not in the new css standards. So there is no more font smoothing.! You can see the w3c standards here. http://www.w3.org/TR/WD-font/#font-smooth

0
Sep 13 '13 at 13:10
source share

If you use a browser or OS that does not have font rendering, this will not work, if you try -moz- -o- , Chrome works on -webkit- , it should be your browser.

0
Sep 13 '13 at 13:16
source share

It seems that for some (system?) Fonts there is a difference between your test cases:

 body { font-family: "HelveticaNeue-Light"; font-weight: 300; } 

http://jsfiddle.net/gN875/

0
Feb 12 '14 at 23:47
source share

Try this CSS:

 div { -webkit-text-stroke: 0.6px; } 
 <div style="font-size: 42px"> <p style="-webkit-font-smoothing: subpixel-antialiased">This is a font test.</p> <p style="-webkit-font-smoothing: antialiased">This is a font test.</p> <p style="-webkit-font-smoothing: none">This is a font test.</p> </div> 
-2
Nov 12 '14 at 1:51
source share



All Articles