Custom Font STILL wont work in IE

三世轮回 提交于 2019-12-07 13:15:56

问题


The webpage where I'm trying to get the custom font "Duke-Fill" to display is http://www.hamlinforcongress.com/helpout.php

I'm using:

@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;
}

I've tried every other suggestion I can find on the Internet, but nothing can make the custom font display in Internet Explorer. It works perfectly in every other conceivable browser, but not IE (surprise surprise). Help?


回答1:


@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;
}

This code works in IE. It was generated using Font Squirrel



来源:https://stackoverflow.com/questions/11722959/custom-font-still-wont-work-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!