在Internet Explorer中支持TTF的状态是什么? [英] What is the status of TTF support in Internet Explorer?

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

问题描述

我试图确定在Internet Explorer上支持TTF字体格式的状态。 (我没有任何Windows机器可以试用。) caniuse表格指出IE版本9以上版本支持TTF,但是只有在[字体设置为可安装的时候才能工作」。那是什么意思?该页面链接到 MSDN上的博客文章,它描述了IE9上的更新字体支持。这不是很清楚或明确;我认为原始字体是指ttf和otf。它说:支持的字体格式包括...嵌入权限设置为可安装的原始字体

所以,总结:




  • IE浏览器支持ttf字体吗?
  • 如果存在ttf支持,它在IE9,IE10和IE11中有所不同吗?

  • 什么是嵌入权限设置为可安装意味着引用ttf字体?

解决方案

因此,正如我在上面的问题中提到的,Internet Explorer从版本9开始有一些ttf支持,但是只有当[字体设置为可安装的时候才能工作。

一些背景:
$ b


... TrueType字体嵌入位这允许
字体的创建者决定将允许的嵌入级别。
是四种不同的嵌入位:(1)没有嵌入,(2)嵌入
查看和打印,(3)嵌入查看,打印和编辑,
(4)可安装嵌入。许多小型设计公司已经设置了嵌入位,因此不允许嵌入任何类型的嵌入位。 ...


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

,讨论了处理嵌入位的问题。在那里发现,字体松鼠webfont发生器自动处理这些嵌入位默认情况下在大多数字体。因为我已经通过字体松鼠运行我的字体,我很高兴去。我调整了我的CSS比TTF优先于WOFF进行测试,并使用webpagetest获得了以下结果:



不测试字体没有嵌入位设置为可安装,不,我不能说任何关于这一点。但一般的结论是,当嵌入位被设置为可安装时, TTF字体在IE 9以上工作

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"

So, in summary:

  • Does IE support ttf fonts at all?
  • If ttf support exists, does it differ among IE9, IE10, and IE11?
  • What does "embedding permissions set to installable" mean in reference to ttf fonts?

解决方案

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".

Some background:

...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. ...

Source (also contains a lot of other information on this) and here's Another source with similar info

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:

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天全站免登陆