gpt4 book ai didi

embedded-fonts - WOFF 字体的 Mime 类型?

转载 作者:行者123 更新时间:2023-12-03 03:54:20 25 4
gpt4 key购买 nike

WOFF 字体应该用作什么 mime 类型?

我将 truetype (ttf) 字体作为 font/truetype 提供,将 opentype (otf) 作为 font/opentype 提供,但我找不到 WOFF 字体的正确格式。

我已经尝试过 font/wofffont/webopenfont/webopentype,但 Chrome 仍然提示:

“资源解释为字体,但使用 MIME 类型 application/octet-stream 进行传输。”

有人知道吗?

最佳答案

更新自 Keith Shaw's comment 2017 年 6 月 22 日:

As of February 2017, RFC8081 is the proposed standard. It defines a top-level media type for fonts, therefore the standard media type for WOFF and WOFF2 are as follows:

font/woff

font/woff2

<小时/>

2011年1月it was announced与此同时 Chromium 会识别

application/x-font-woff

作为 WOFF 的 mime 类型。我知道这个变化现在已经在 Chrome 测试版中了,如果还没有稳定,那应该不会太远。

关于embedded-fonts - WOFF 字体的 Mime 类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3594823/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com