Tag: eot

更正字体MIMEtypes的Apache AddType指令

我正在使用@ font-faceembedded字体(感谢Paul Irish )。 在试图解决Chrome对woff字体的错误MIMEtypes的警告时,我发现了大量相互矛盾的build议。 每个人似乎都认为,应该使用字体(对于IE 6-8?) AddType application/vnd.ms-fontobject .eot .ttf字体(较老的非IE浏览器?)我见过 AddType application/x-font-ttf .ttf AddType application/octet-stream .ttf AddType font/truetype .ttf AddType font/ttf .ttf 而.woff字体(新标准?)我见过 AddType application/font-wof .woff AddType application/x-font-woff .woff AddType application/x-woff .woff 我知道woff的正确的MIMEtypes是application / font-woff,但是直到官方标准, application / x-font-woff才能被Chrome所理解 。 我意识到我问了一大堆问题,但问题是:是否有任何权威性的指导或关于什么MIMEtypes应该用于字体的进一步的build议? 更新(以防其他任何人的帮助):因为似乎没有什么权威的,我已经决定在我的.htaccess中使用下面的字体MIMEtypes(至less让Chrome开心): AddType application/vnd.ms-fontobject .eot AddType application/x-font-ttf .ttf AddType application/x-font-woff .woff