CSS @font-face not working with Firefox, but working with Chrome and IE

后端 未结 28 2815
野趣味
野趣味 2020-11-22 06:27

The following code works in Google Chrome beta as well as IE 7. However, Firefox seems to have a problem with this. I\'m suspecting it to be a problem of how my CSS files ar

28条回答
  •  孤城傲影
    2020-11-22 06:32

    Try nerfing the local source declaration in your @font-face directives.

    There's a known bug in either Firefox or the Google Font API that prevents the variants of fonts to be used if the font is installed locally, and matches the defined local name:

    http://code.google.com/p/googlefontdirectory/issues/detail?id=13

    To effectively nerf the local declaration, just make your local source string some nonsense. The generally accepted convention for this is to use a the smiley unicode character ("☺"). Why? Paul Irish has a great explanation up on his blog:

    http://paulirish.com/2010/font-face-gotchas/#smiley

提交回复
热议问题