WOFF Fonts, what Are they and why should I care?

不问归期 提交于 2019-12-01 15:26:42

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/2684256/woff-fonts-what-are-they-and-why-should-i-care

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!