Web 字体嵌入 vs. sifr? [英] Web font embedding vs. sifr?

查看:37
本文介绍了Web 字体嵌入 vs. sifr?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用非标准的网络字体来改善我的 HTML 的外观.

I'd like to use a non-standard web font to improve the appearance of my HTML.

是嵌入网页字体还是使用诸如 sifr 之类的字体更可取?

我的理解是 sifr 是一种基于 Flash 的矢量字体查看器,但我一直不愿意尝试它,因为它看起来有些复杂.

My understanding is sifr is a flash-based viewer for vector fonts but I've been reluctant to try it because it seems somewhat complicated.

似乎没有很多关于网络字体嵌入的令人鼓舞的讨论(因为法律问题),所以也许 sifr 更像是一种标准的方法来做到这一点?

There does not seem to be a lot of encouraging talk about web font embedding (because of legal issues) so maybe sifr is more of a standard way to do this?

任何反馈将不胜感激.谢谢.

Any feedback would be appreciated. Thanks.

推荐答案

Web 字体在 Safari 3.1、即将推出的 Firefox 3.5 和即将推出的 Opera 10 中受支持.Internet Explorer 从 IE4 开始支持(不同的)格式.

Web fonts are supported in Safari 3.1, the upcoming Firefox 3.5 and the upcoming Opera 10. Internet Explore has supported a (different) format since IE4.

此时,在 Safari、Firefox 和 Opera 中实现的最大问题是它们需要您将原始字体文件上传到您的网络服务器.对于许多字体,这将违反您从字体代工厂处获得的许可.因此,如果字体代工厂未授予您使用它们的许可,那么现在 Web 字体不是合适的解决方案.但是,有免费许可的字体可用.

At this point, the biggest problems with the implementation in Safari, Firefox and Opera is that they require you to upload the original font file to your web server. For many fonts, this would constitute a violation of the license you received from the type foundry. Therefore, web fonts right now are not an appropriate solution if the type foundry has not given you permission to use them. However, there are freely licensed fonts available.

这给我们留下了大约三个其他选项:图片、Flash 和基于 JavaScript 的解决方案.图像通常更可取,因为它们对浏览器特性和性能的影响最小,但是,例如,PHP 中的动态图像生成通常看起来不如其他解决方案.您当然可以在 Photoshop 中手动创建图像,但这通常会达不到目的.

This leaves us with roughly three other options: images, Flash, and JavaScript-based solutions. Images are often preferable in that they have minimal impact with regards to browser quirks and performance, however dynamic image generation in, say, PHP often does not look as good as other solutions. You could of course manually create images in Photoshop, but that would usually defeat the purpose.

sIFR 使用 Flash 来呈现文本,并且非常灵活,因为您可以选择文本、动态更改文本以及对嵌套 HTML 元素的样式进行一些控制.霍夫勒 &Frere-Jones 已同意 sIFR,前提是您支付服务器许可费用并采取一切可能措施将 sIFR Flash 电影限制在您的域名中.

sIFR uses Flash to render the text, and is quite flexible in that you can select the text, change it dynamically, and have some control over the styling of nested HTML elements. Hoefler & Frere-Jones has given sIFR the OK, provided you pay for a server license and take all possible measures in limiting the sIFR Flash movie to your domain name.

Cufón 是一个纯 JavaScript 解决方案,它实现了自己的渲染引擎,非常聪明.在这一点上它不如sIFR灵活,其法律问题还不清楚.

Cufón is a purely JavaScript solution that has implemented its own rendering engine, which is insanely clever. At this point its not as flexible as sIFR, and its legal issues are still unclear.

也就是说,图像、sIFR 和 Cufón 都是黑客,我们需要适当的网络字体昨天.

That said, images, sIFR and Cufón are all hacks, and we need proper web fonts yesterday.

(免责声明:我是 sIFR 的首席开发人员,所以我可能有些偏见.)

(Disclaimer: I'm the lead developer of sIFR, so I might be somewhat biased.)

这篇关于Web 字体嵌入 vs. sifr?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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