0

我正在使用samarn我的网站中调用的字体。该字体在FirefoxGoogle 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'; 
}
4

1 回答 1

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/

于 2012-08-28T14:39:02.520 回答