简体   繁体   English

IE9字体无法渲染

[英]IE9 fonts not rendering

I have checked the search, and found a multitude of resources, however none have worked. 我检查了搜索,发现了很多资源,但是都没有用。

Chrome, FF, IE7+8 all load in the font 'Gotham-Book' perfectly fine; Chrome,FF,IE7 + 8都可以很好地加载'Gotham-Book'字体; however in IE 9 it just displays default browser. 但是在IE 9中,它仅显示默认浏览器。

In the css this is my @font-face 在CSS中,这是我的@ font-face

@font-face {
font-family: "Gotham-Book";
src: url('../Fonts/Gotham-Book.eot?') format('embedded-opentype'), 
     url('../Fonts/Gotham-Book.otf') format("opentype"),
     url('../Fonts/Gotham-Book.ttf')  format('truetype');
}

I got the ? 我拿到 ? in the url from here . 这里的网址中。

I added this to my httpd.conf (as suggested on stack) 我将此添加到我的httpd.conf中(如在堆栈上所建议的)

<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "http://localhost"
</IfModule>
</FilesMatch>

With no avail. 无济于事。 Has anyone got any suggestions for IE 9? 有没有人对IE 9有任何建议?

Thanks. 谢谢。

IE9 is using font in woff format. IE9正在使用woff格式的字体。 Looks like you're not providing it. 好像您没有提供它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM