自定义字体STILL无法在IE中使用

Jos*_*idt 3 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;
}
Run Code Online (Sandbox Code Playgroud)

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

Spa*_*ers 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;
}
Run Code Online (Sandbox Code Playgroud)

此代码适用于IE.它是使用Font Squirrel生成的

  • @SpaceBeers - 我曾经有一个奇怪的书法字体嵌入,它只是不起作用 - 比我发现每个TTF字体文件都可以锁定(有一个"嵌入"属性,字体设计师可以设置,以防止系统嵌入字体).但是,还有一个名为TTFPATCH的工具可以让您更改此设置并使字体可用.到目前为止我发现了2种字体,我用这个解决了这个问题(尽管我认为从法律角度来看这可能会有问题 - 但客户并不关心,因为他们承担了所有风险我只是实施了它) (2认同)