2015-07-28 104 views
-2

我的整個網站都使用了一些字體,而在IE中,字體無法正確呈現(完全)。我已經做了一些研究,看來我需要將它設置爲允許安裝嵌入。我試過使用http://carnage-melon.tom7.org/embed/,但是當我下載embed.exe時,終端不出現。這只是IE瀏覽器中的一個問題,可以在Chrome,Opera,Safari和Firefox中正常工作。@ font-face字體不在IE中呈現

IE控制檯登錄:

CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable. 

CSS

@font-face { 
    font-family: 'droid-sans-regular'; 
    src: url('../fonts/DroidSans-webfont.woff') format('woff'), 
     url('../fonts/DroidSans-webfont.ttf') format('truetype'); 
    font-weight: normal; 
    font-style: normal; 
} 

回答

1

你需要的即EOT字體類型:

src: url('../fonts/DroidSans-webfont.eot'); /* IE9 and above */ 
    src: url('../fonts/DroidSans-webfont.eot?#iefix') format('embedded-opentype'), /* IE8 */