我在我的程序中有一个从Font Squirrel生成的字体,我只是不能让它在IIS中工作,它在localhost中可以工作。我将application/font-woff article添加到我的MIME类型中,但它仍然不想工作。
Context
--Fonts
----font location
--css files
CSS
@font-face {
font-family: 'wallStreetFont';
src: url('Fonts/subway-webfont.eot');
src: url('Fonts/subway-webfont.eot?#iefix') format('embedded-opentype'),
url('Fonts/subway-webfont.woff2') format('woff2'),
url('Fonts/subway-webfont.woff') format('woff'),
url('Fonts/subway-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
编辑当前的MIME
我正在使用默认的IIS8 MIME 字体/x-woff
https://stackoverflow.com/questions/25796609
复制相似问题