Make Adobe fonts work with CSS3 @font-face in IE9

前端 未结 19 2214
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 10:04

I\'m in the process of building a small intranet application and try, with no luck, to use Adobe font I purchased lately. As I was informed, in our case it\

19条回答
  •  一个人的身影
    2020-11-27 10:19

    I found eot file should be put beyond ttf. If it's under ttf, thought the font shows correctly, IE9 will still throw an error.

    Recommend:

    @font-face {
      font-family: 'Font-Name';
      src: url('../fonts/Font-Name.eot?#iefix') format('embedded-opentype');
      src: url('../fonts/Font-Name.ttf')  format('truetype');
    }
    

    Not Recommend:

    @font-face {
      font-family: 'Font-Name';
      src: url('../fonts/Font-Name.ttf')  format('truetype');
      src: url('../fonts/Font-Name.eot?#iefix') format('embedded-opentype');
      }
    

提交回复
热议问题