Internet Explorer 中 TTF 支持的状态如何? [英] What is the status of TTF support in Internet Explorer?

查看:23
本文介绍了Internet Explorer 中 TTF 支持的状态如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试确定 Internet Explorer 上对 TTF 字体格式的支持状态.(我手头没有任何 Windows 机器可以试用.)caniuse 上的表格 指出 IE 来自版本 9 以后支持 TTF,但仅在 [字体] 设置为可安装时才有效".这意味着什么?该页面链接到 MSDN 上的一篇博文,描述了 IE9 上更新的字体支持.它不是很清楚或明确;我认为所指的原始字体"是指 ttf 和 otf.它说支持的字体格式包括......嵌入权限设置为可安装的原始字体"

I'm trying to determine the status of support for the TTF font format on Internet Explorer. (I don't have any Windows machines on hand to try it with.) The table at caniuse states that IE from version 9 onwards supports TTF but "only working when [fonts are] set to be installable". What does that mean? That page links to a blog post on MSDN, which describes updated font support on IE9. It isn't very clear or explicit; I think the "raw fonts" being referred to mean ttf and otf. It says "supported font formats include ... raw fonts with embedding permissions set to installable"

所以,总结一下:

  • IE 是否完全支持 ttf 字体?
  • 如果存在 ttf 支持,它在 IE9、IE10 和 IE11 之间是否有所不同?
  • 嵌入权限设置为可安装"对于 ttf 字体是什么意思?

推荐答案

所以正如我在上面的问题中提到的,Internet Explorer 从版本 9 开始有一些 ttf 支持,但仅在 [字体] 设置为可安装时才有效".

So as I mentioned in my question above, Internet Explorer has some ttf support starting with version 9, but "only working when [fonts are] set to be installable".

一些背景:

...TrueType 字体具有嵌入的位",允许创建者font 来决定允许的嵌入级别.那里是四个不同的嵌入位:(1)无嵌入,(2)嵌入仅查看和打印,(3) 嵌入查看、打印和编辑,以及(4) 可安装嵌入..很多小型设计公司都设置了它们的嵌入位,因此不允许进行任何类型的嵌入....

...TrueType fonts have embedding "bits" which allow the creator of the font to decide the level of embedding that will be permitted. There are four different embedding bits: (1) no embedding, (2) embedding for view and print only, (3) embedding for view, print and editing, and (4) installable embedding.. Many small type design houses have set their embedding bits so that embedding of any kind is not permitted. ...

来源(也包含很多其他信息),这里是具有类似信息的另一个来源

另一个问题中,处理与嵌入位进行了讨论.据透露,Font Squirrel webfont 生成器默认会在大多数字体上自动处理这些嵌入位.因为我已经通过字体松鼠运行了我的字体,所以我很高兴.我调整了我的 CSS,使其更喜欢 TTF 而非 WOFF 进行测试,并使用网页测试获得以下结果:

In another question, dealing with the embedding bits was discussed. It was revealed there that the Font Squirrel webfont generator automatically deals with these embedding bits by default on most fonts. Since I had ran my font through font squirrel I was good to go. I tweaked my CSS to prefer TTF over WOFF for testing and obtained the following results using webpagetest:

请注意,我没有在未将嵌入位设置为可安装的情况下测试字体,不,我对此无话可说.但一般的结论是TTF字体在嵌入位设置为可安装时在IE 9以后工作

Note that I did not test fonts without the embedding bits set to installable, no I cannot say anything about that. But the general conclusion is that TTF fonts work in IE 9 onwards when the embedding bits are set to installable

这篇关于Internet Explorer 中 TTF 支持的状态如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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