Internet Explorer @font-face is failing

前端 未结 15 1325
甜味超标
甜味超标 2020-11-27 18:07

I\'m trying to get Internet Explorer to render my pretty fonts. It\'s not working. They work fine in Firefox and I can see in my Apache access logs that IE has pulled the fo

15条回答
  •  一生所求
    2020-11-27 19:01

    Internet Explorer gets a bit iffy with the other @font-face definitions in there. I previously found this to be of amazing help - http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/

    In short, they recommend the best way is the following. The only change is to add a question mark at the end of the font url. Weird, no?

    @font-face {
      font-family: 'Graublau Web';
      src: url('GraublauWeb.eot?') format('eot'), url('GraublauWeb.woff') format('woff'), url('GraublauWeb.ttf') format('truetype');
    }
    

    There are a number of other alternatives listed, namely around specifying separate @font-face tags for the EOT file from the others.

提交回复
热议问题