OTF 字体的正确 MIME 类型 [英] Proper MIME type for OTF fonts

查看:33
本文介绍了OTF 字体的正确 MIME 类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在网上搜索时,我发现了大量关于字体的正确 MIME 类型的不同建议,但我还没有尝试任何可以消除 Chrome 警告的 MIME 类型,例如:

Searching the web, I find heaps of different suggestions for what the proper MIME type for a font is, but I have yet to try any MIME type that rids me of a Chrome warning such as the following:

资源被解释为字体但使用 MIME 类型 font/otf 传输

Resource interpreted as font but transferred with MIME type font/otf

字体是 OTF.

到目前为止我已经尝试了以下 MIME 类型

I've tried the following MIME types so far

  • 字体/otf
  • 应用程序/font-otf
  • 应用程序/字体
  • 应用程序/otf
  • 应用程序/八位字节流
  • application/x-font-otf
  • application/x-font-TrueType(我知道它不是 truetype,但一个消息来源为 OTF 引用了这个)

推荐答案

尝试使用font/opentype".

Try using "font/opentype".

这篇关于OTF 字体的正确 MIME 类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆