2012-09-10 164 views
0

我檢查了搜索,發現了大量的資源,但都沒有工作。 Chrome,FF,IE7 + 8全部加載在字體'Gotham-Book'中,完全沒問題;但在IE 9中它只顯示默認瀏覽器。IE9字體沒有渲染

在CSS這是我@字體面

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

我得到的?在here的網址。

我將此添加到我的httpd.conf(堆棧的建議)

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

隨着無濟於事。有沒有人對IE 9有任何建議?

謝謝。

回答

3

IE9使用woff格式的字體。看起來你不提供它。

+1

我通常使用http://www.fontsquirrel.com/fontface/generator - 它會爲你生成所有需要的文件格式。 – Maciej

+0

謝謝,現在在ie9中默認的字體加載,然後新的字體加載 - 任何建議? – zomboble

+1

這裏有一些關於如何解決這個問題的建議: http://stackoverflow.com/questions/10836529/font-face-flash-of-unstyled-text-in-internet-explorer-9 – Maciej