跳转到内容

Web開放字型格式

本页使用了标题或全文手工转换
维基百科,自由的百科全书

这是本页的一个历史版本,由InternetArchiveBot留言 | 贡献2021年2月9日 (二) 17:59 (补救13个来源,并将0个来源标记为失效。) #IABot (v2.0.8)编辑。这可能和当前版本存在着巨大的差异。

開放字型格式
扩展名
.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压缩,文件大小比上一版小30%。

支持

WOFF支援以下浏览器:[12]

WOFF 2.0支援以下浏览器:

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

參考資料

  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可免费查阅. 
  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
  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
  8. ^ WOFF - Now loading fonts on websites, The H, 2010-07-28 
  9. ^ Buckler, Craig, W3C Backs the WOFF WebFont Standard, SitePoint, 2010-08-17 
  10. ^ W3C: WOFF File Format 2.0
  11. ^ Stefanov, Stoyan, @font-face gzipping - take II, PHPied.com, 2009-10-20 [2010-01-30] 
  12. ^ Wardle, Tiffany, Typegirl - Most of the important foundries are supporting #webfont, tumblr, 2009-07-16 [2010-02-05], (原始内容存档于2009-11-16) 
  13. ^ Shapiro, Melissa, Mozilla Supports Web Open Font Format, Mozilla Foundation, 2009-10-20 [2010-02-05], (原始内容存档于2011-06-16) 
  14. ^ Colyer, Matt, Typekit adds Chrome 6 WOFF support, Adobe, 2010-09-21 [2016-10-16], (原始内容存档于2011-07-08) 
  15. ^ Hachamovitch, Dean, HTML5, Native: Third IE9 Platform Preview Available for Developers, Microsoft, 2010-06-23 [2011-01-19], (原始内容存档于2010-06-26) 
  16. ^ @font-face: add support for the Web Open Font Format (WOFF), 2010-02-12 [2016-10-16] 
  17. ^ Web specifications support in Opera Presto 2.7, Opera, [2011-01-19], (原始内容存档于2011-02-13) 
  18. ^ Bug 38217 - [chromium] Add WOFF support, WebKit 
  19. ^ Bug 31302 - Add WOFF support for @font-face, WebKit 
  20. ^ Stępień, Marek, @font-face - MDN, Marcoos, 2011-12-02 
  21. ^ True to type. The Economist. 2010-10-19 [2010-10-19]. (原始内容存档于2013-07-12). 
  22. ^ Chromium 36 Release Notes, Google 
  23. ^ Speed up page load with WOFF 2.0 fonts in Microsoft Edge, Microsoft 
  24. ^ Opera 26 Release Notes, Opera Software ASA 
  25. ^ Firefox 35 Release Notes, Mozilla Developer Network 
  26. ^ What's new in Safari, Apple 

外部連結