Posted By

thewickedchemist on 12/01/11


Tagged

hack font-face


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

nbreslow


Fix Custom @Font-Face Display Issues in Webkit Browsers


 / Published in: CSS
 

Sometimes fonts are not rendered properly in webkit browsers, this little hack will smooth them out and make them beautiful again.

  1. /* Best used with custom @font-face stacks... */
  2.  
  3. @media screen and (-webkit-min-device-pixel-ratio:0) {
  4. h1 { font-family: "Your Custom Font", Arial, Verdana, San-Serif; }
  5. }

Report this snippet  

You need to login to post a comment.