我在 Chromium 源代码中看到对 woff2 的支持,但我没有看到在 IANA 注册的 mimetype。
http://www.iana.org/assignments/media-types/media-types.xhtml
Think about the correct mime type for WOFF 2.0 files (Google uses font/woff2. W3C recommends application/font-woff2)
https://gist.github.com/sergejmueller/cf6b4f2133bcb3e2f64a
我是不是遗漏了一些明显的东西,或者这只是没有发生,人们正在实现它?
最佳答案
.woff
和 .woff2
字体文件的正确 MIME 类型是 font/woff
和 font/woff2
分别。
重要的是要注意,即使 application/font-woff
可能仍然受到支持,它已被弃用,取而代之的是 font/woff
。
引用文献:IANA on application media type , IANA on font media type , 和 IETF RFC 8081 .
关于google-chrome - 为什么 woff2 不在 mimetype 目录中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27829408/