自定义字体STILL在IE中不起作用

时间:2012-07-30 13:52:13

标签: html css internet-explorer font-face custom-font

我试图获取要显示的自定义字体“Duke-Fill”的网页是http://www.hamlinforcongress.com/helpout.php

我正在使用:

@font-face {
font-family: 'header_font';
src: url('Duke-Fill.eot?#iefix') format('embedded-opentype'), 
     url('Duke-Fill.woff') format('woff'), 
     url('Duke-Fill.ttf')  format('truetype'),
     url('Duke-Fill.svg#svgFontName') format('svg');
}
.header_font{
font-family: header_font;
}

我已经尝试过我可以在互联网上找到的所有其他建议,但没有任何东西可以在Internet Explorer中显示自定义字体。它在所有其他可以想象的浏览器中都能很好地工作,但不是IE(惊喜)。帮助

1 个答案:

答案 0 :(得分:5)

@font-face {
    font-family: 'NimbusSanConD-Lig';
    src: url('fonts/228BFB_1_0.eot');
    src: url('fonts/228BFB_1_0.eot?#iefix') format('embedded-opentype'),
         url('fonts/228BFB_0_0.woff') format('woff'),
         url('fonts/228BFB_0_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

此代码适用于IE。它是使用Font Squirrel

生成的
相关问题