我正在一個webfonts服務器上工作,我得到了API吐出正確的MIME類型的CSS。他們也被鏈接到頁面。爲什麼我的字體文件沒有下載未加載?
@font-face {
font-family: 'Pagul';
src: url('http://localhost:5000/api/webfonts/static/Pagul.eot');
src: local('☺'), url('http://localhost:5000/api/webfonts/static/Pagul.woff') format('woff'),
url('http://localhost:5000/api/webfonts/static/Pagul.ttf') format('truetype'),
font-weight: normal;
font-style: normal;
}
的TTF,EOT文件可以manualy使用的鏈接下載的,由於某種原因,這些字體 不是我究竟錯在這裏做瀏覽器加載?字體文件沒有適當的mimetypes是這個問題?
我也試過font-squirells語法,它不工作。 PS:Css是動態生成並添加到頭部?
'localhost'?開發者控制檯中是否有任何控制檯錯誤? – Raptor
沒有控制檯錯誤。 – Diadara