.woff2 failed to load in chrome
I got 404 errors for .woff files. Even though I have followed the instruction in Proper MIME type for .woff2 fonts to add .woff to MIME types in IIS, I am still getting 404 errors. It works in IE, but not in chrome. Any pointers? I can not add this following to web.config.
<system.web>
...
<staticContent>
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
</staticContent>
</system.web>
Any pointers will be appreciated.
I think it may have something to do with the IIS. My company is still using IIS 7.5. therefore woff2 is not supported by it.
Since neither IIS or web.config changes can solove the issue. I decide to use cdn such as https://www.google.com/fonts#UsePlace:use/Collection:Roboto. It has instruction of how to use fonts there.
尝试这个:
mimeType="font/woff2"
链接地址: http://www.djcxy.com/p/47010.html
上一篇: 字体中仍然需要eot,ttf和svg
下一篇: .woff2无法在Chrome中加载