WOFF字体,它们是什么,为什么要关心? [英] WOFF Fonts, what Are they and why should I care?

查看:235
本文介绍了WOFF字体,它们是什么,为什么要关心?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以mozilla提出了一个新的webfont,我不是真的进入这个世界,但我想保持自我up2date。那么,甚至微软支持它什么是伟大的事情,为什么我应该作为一个webdev护理?

和旧的有什么不同?
我们是否需要另一种字体系统?
在什么情况下我应该使用WOFF?
为什么不只是坚持现有的?



另外一个叫做WOFF的新标签可能会有用。

/ em>在HTML中。



这个原因很重要;你应该关心的原因以及这种发展与在外面穿内衣以节省洗衣费的发明相同的原因是因为嵌入字体的能力使得可能不在客户系统上的字体的使用成为可能。而WOFF字体已针对此任务进行了优化。因此,虽然网站已被限制在少量的web安全字体(例如Tahoma,Arial),但是新的CSS规则 font-face ,浏览器现在可以下载字体并使用它。

这可能听起来像是穿着高领衫的设计师类型的东西 - 但是,在某些情况下,它是必不可少的...就像操作系统没有例如,有日文字体,网站上有日文文字。这种情况通常是一个死胡同,没有显示。



WOFF格式是可下载字体的蜜蜂,主要有两个原因:


  • WOFF是压缩的 - 与原始的TrueType或OpenType字体相比,下载的尺寸更小。无需手动gzip文件或让服务器执行此操作

  • WOFF包含的信息可以让你看到字体的来源 - 没有DRM支持从字体创建者


所以, 我们需要吗?是的。我们需要另一种字体系统来满足压缩和识别字体的需要。使用嵌入到网页中。



什么时候?在嵌入Web字体的所有情况下(假设浏览器支持无处不在) / p>

为什么?我们不会坚持现有的,因为它们没有被压缩,不能被正确识别,可嵌入的概念,因此不适合这项工作。

So mozilla has proposed a new webfont, i'm not really into that world, but i want to keep myself up2date. So whats the great thing since even Microsoft is backing it, why should I as a webdev care?

Whats the difference from the old ones? Do we need another font system? In what situations should i use WOFF? Why not just stick to the existing ones?

Also a new tag called WOFF might be useful.

解决方案

Well, WOFF is a new font standard, as you know (like truetype & opentype) but which is designed specifically for use on the web, to be embedded in HTML.

The reason this is significant; the reason you should care and the reason this development is on par with the invention of wearing underwear on the outside to save on laundry bills - is because the ability to embed fonts enables the using of fonts that may not be on the client's system. And WOFF fonts are optimised for this task.

So, while web sites have been limited to a small number of web safe fonts (eg Tahoma,Arial), with the new CSS rule font-face, the browser can now download a font and use it.

This may just sound like something for shandy-sipping, turtleneck-wearing designer-types - however, in some cases it's essential... like when an OS doesn't have a Japanese font, for example, and the web site has text in Japanese. This situation is ordinarily a dead-end, no-show.

WOFF format is the bees-knees for downloadable fonts, for 2 main reasons:

  • WOFF is compressed - smaller download sizes compared with raw TrueType or OpenType fonts. No need to manually gzip files or have the server do it

  • WOFF contains information that allows you to see where the font came from – without DRM – which has support from font creators

So,

Do we need it? Yes. We need another font system to cater for the need to compress and identify a font & work with embedding in web pages.

When? You would use WOFF in all cases when embedding web fonts (assuming browser support is ubiquitous)

Why? We wouldn't just stick to the existing ones because they are not compressed and can't be identified properly and cannot progress with the embeddable concept and are therefore not as suitable for the job.

这篇关于WOFF字体,它们是什么,为什么要关心?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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