Web开放字体格式

本页使用了标题或全文手工转换
维基百科,自由的百科全书
开放字体格式
扩展名
.woff
.woff2
互联网媒体类型
font/woff
font/woff2
application/font-woff(deprecated)[1][2]
开发者Mozilla基金会
格式类型字体
作为容器SFNT字体
网站

Web开放字体格式(Web Open Font Format,简称WOFF)是一种网页所采用的字体格式标准。此字体格式发展于2009年,[3]万维网联盟的Web字体工作小组标准化,现在已经是推荐标准[4]此字体格式不但能够有效利用压缩来减少文件大小,并且不包含加密也不受DRM(数字著作权管理)限制。

在2010年4月8日,Mozilla基金会Opera软件公司微软提交WOFF[5][6]之后,万维网联盟发表评论指,希望WOFF不久能成为所有浏览器都支持的、“单一、可互操作的(字体)格式”。[7]2010年7月27日,万维网联盟将WOFF作为工作草案发布。[8][9]2018年3月发布2.0版。[10]

规格[编辑]

WOFF本质上是包含了基于SFNT的字体(如TrueTypeOpenType或其他开放字体格式),且这些字体均经过WOFF的编码工具压缩,以便嵌入网页中。[3]WOFF 1.0使用zlib压缩,[3]文件大小一般比TTF小40%。[11]而WOFF 2.0使用Brotli压缩,文件大小比上一版小28%~29%[12]

支持[编辑]

以下浏览器支持 WOFF:[13]

以下浏览器支持 WOFF 2.0:

  • Google Chrome(自36版本起)[23]
  • Edge(自14版本起)[24]
  • Opera(自26版本起)[25]
  • Firefox(自35版本起)[26]
  • Safari(自10版本起)[27]

参考资料[编辑]

  1. ^ Media Types. IANA. 2017-10-12 [2017-10-17]. (原始内容存档于2017-10-18). 
  2. ^ The "font" Top-Level Media Type. IETF. February 2017 [2017-10-17]. RFC 8081可免费查阅. (原始内容存档于2021-03-10). 
  3. ^ 3.0 3.1 3.2 Kew, Jonathan; Tal Leming (Type Supply), Erik van Blokland (LettError), WOFF File Format (draft of 2009-10-23), Mozilla Foundation, 2009-10-23 [2010-01-30], (原始内容存档于2010-03-09) 
  4. ^ Lilley, Chris, Web Fonts Working Group Charter, W3C, 2010-03-17 [2010-04-21], (原始内容存档于2018-04-27) 
  5. ^ WOFF File Format 1.0 Submission Request to W3C. [2011-01-19]. (原始内容存档于2011-05-14). 
  6. ^ Galineau, Sylvain, Meet WOFF, The Standard Web Font Format, Microsoft, 2010-04-23 [2011-01-19], (原始内容存档于2011-05-22) 
  7. ^ Team Comment on "WOFF File Format 1.0" Submission. [2011-01-19]. (原始内容存档于2010-12-29). 
  8. ^ WOFF - Now loading fonts on websites, The H, 2010-07-28 [2011-01-19], (原始内容存档于2011-06-29) 
  9. ^ Buckler, Craig, W3C Backs the WOFF WebFont Standard, SitePoint, 2010-08-17 [2011-01-19], (原始内容存档于2010-08-31) 
  10. ^ W3C: WOFF File Format 2.0. [2018-12-13]. (原始内容存档于2022-04-13). 
  11. ^ Stefanov, Stoyan, @font-face gzipping - take II, PHPied.com, 2009-10-20 [2010-01-30], (原始内容存档于2011-04-26) 
  12. ^ Lilley, Chris. WOFF 2.0 Evaluation Report. W3C. 2016-03-15 [2023-04-30]. (原始内容存档于2023-05-05) (英语). As an example, WOFF2 with Brotli compression and continuation streams gave an overall reduction of -29.21% compared to WOFF 1.0, while resetting the compressor on a per-table basis gave a less good filesize reduction of -28.26%. 
  13. ^ Wardle, Tiffany, Typegirl - Most of the important foundries are supporting #webfont, tumblr, 2009-07-16 [2010-02-05], (原始内容存档于2009-11-16) 
  14. ^ Shapiro, Melissa, Mozilla Supports Web Open Font Format, Mozilla Foundation, 2009-10-20 [2010-02-05], (原始内容存档于2011-06-16) 
  15. ^ Colyer, Matt, Typekit adds Chrome 6 WOFF support, Adobe, 2010-09-21 [2016-10-16], (原始内容存档于2011-07-08) 
  16. ^ Hachamovitch, Dean, HTML5, Native: Third IE9 Platform Preview Available for Developers, Microsoft, 2010-06-23 [2011-01-19], (原始内容存档于2010-06-26) 
  17. ^ @font-face: add support for the Web Open Font Format (WOFF), 2010-02-12 [2016-10-16], (原始内容存档于2021-02-24) 
  18. ^ Web specifications support in Opera Presto 2.7, Opera, [2011-01-19], (原始内容存档于2011-02-13) 
  19. ^ Bug 38217 - [chromium] Add WOFF support, WebKit, [2011-01-19], (原始内容存档于2015-09-29) 
  20. ^ Bug 31302 - Add WOFF support for @font-face, WebKit, [2011-01-19], (原始内容存档于2015-10-27) 
  21. ^ Stępień, Marek, @font-face - MDN, Marcoos, 2011-12-02 [2012-02-06], (原始内容存档于2012-05-08) 
  22. ^ True to type. The Economist. 2010-10-19 [2010-10-19]. (原始内容存档于2013-07-12). 
  23. ^ Chromium 36 Release Notes, Google, [2022-05-18], (原始内容存档于2021-06-21) 
  24. ^ Speed up page load with WOFF 2.0 fonts in Microsoft Edge, Microsoft, [2018-12-13], (原始内容存档于2021-02-12) 
  25. ^ Opera 26 Release Notes, Opera Software ASA, [2018-12-13], (原始内容存档于2015-03-23) 
  26. ^ Firefox 35 Release Notes, Mozilla Developer Network, [2018-12-13], (原始内容存档于2015-05-23) 
  27. ^ What's new in Safari, Apple, [2018-12-13], (原始内容存档于2018-01-23) 

外部链接[编辑]