@ font-face in ie not working

时间:2012-08-28 14:36:09

标签: css font-face

我在我的网站上使用了一个名为samarn的字体。该字体在 Firefox Google Chrome 中看起来不错,但在 IE 中,它没有显示。

我的代码是:

@font-face {
    font-family: 'SamarkanNormal';
    src: url('../fonts/samarn.eot');
    src: url('../fonts/samarn.eot?#iefix') format('embedded-opentype'),
         url('../fonts/samarn.woff') format('woff'),
         url('../fonts/samarn.ttf') format('truetype'),
         url('../fonts/samarn.svg#samarn') format('svg');
    font-weight: normal;
    font-style: normal;
}

#name { 
    font-family:'SamarkanNormal'; 
}

1 个答案:

答案 0 :(得分:2)

尝试

@font-face {
  font-family: 'font';
  src: url('font.eot');
  src: local('☺'),
         url('font.otf') format('opentype');
}

更多信息:http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/

也许尝试使用其他(比fsq)字体生成器,fe。 http://fontface.codeandmore.com/