Web Open Font Format

Web Open Font Format
Filename extension .woff
Internet media type application/font-woff[1]
Magic number

77 4F 46 46 ("wOFF" in ASCII)

77 4F 46 32 ("wOF2" in ASCII)
Developed by W3C
Type of format Font file
Container for SFNT fonts
Website WOFF File Format

The Web Open Font Format (WOFF) is a font format for use in web pages. It was developed during 2009[2] and is now a World Wide Web Consortium (W3C) Recommendation.[3]

WOFF is essentially OpenType or TrueType with compression and additional metadata. The goal is to support font distribution from a server to a client over a network with bandwidth constraints.

Submission as a standard

Following the submission of WOFF by the Mozilla Foundation, Opera Software and Microsoft in April 2010,[4][5] the W3C commented that it expects WOFF to soon become the "single, interoperable [font] format" supported by all browsers.[6] The W3C published WOFF as a working draft in July,[7][8] and it became a W3C Recommendation in December that year.

WOFF 2.0, a proposed update to the existing WOFF 1.0 with improved compression is currently being evaluated.[9] WOFF 2.0 uses Brotli as the byte-level compression format.

Specification

WOFF is essentially a wrapper that contains SFNT-based fonts (TrueType or OpenType) that have been compressed using a WOFF encoding tool to enable them to be embedded in a Web page.[2] The format uses zlib compression (specifically, the compress2 function),[2] typically resulting in a file size reduction from TTF of over 40%.[10] Like OpenType fonts, WOFF supports both PostScript and TrueType outlines for the glyphs.[11]

Vendor support

The format has received the backing of many of the main font foundries[12] and has been supported by all major browsers:

Some browsers enforce a same-origin policy, preventing WOFF fonts from being used across different domains. This restriction is part of the draft CSS 3 Fonts module,[23] where it applies to all font formats and can be overridden by the server providing the font.

Some servers may require the manual addition of WOFF's MIME type to serve the files correctly;[24] the proper MIME type is application/font-woff,[1] not application/x-font-woff, although font/woff is also commonly seen.

WOFF 2.0, based on the Brotli compression algorithm and other improvements over WOFF 1.0 giving more than 30 % reduction in file size, is supported in Chrome (since version 36),[25] Opera (since version 26)[26] and Firefox (since version 35).[27]

See also

References

  1. 1 2 "Appendix B: Media Type registration". W3C. 2011-08-14.
  2. 1 2 3 Kew, Jonathan; Tal Leming (Type Supply), Erik van Blokland (LettError) (2009-10-23), WOFF File Format (draft of 2009-10-23), Mozilla Foundation, retrieved 2010-01-30 Cite uses deprecated parameter |coauthors= (help)
  3. WOFF File Format 1.0
  4. WOFF File Format 1.0 Submission Request to W3C
  5. Galineau, Sylvain (2010-04-23), Meet WOFF, The Standard Web Font Format, Microsoft
  6. Team Comment on "WOFF File Format 1.0" Submission
  7. WOFF - Now loading fonts on websites, The H, 2010-07-28
  8. Buckler, Craig (2010-08-17), W3C Backs the WOFF WebFont Standard, SitePoint
  9. W3C: WOFF 2.0 Evaluation Report
  10. Stefanov, Stoyan (2009-10-20), @font-face gzipping - take II, PHPied.com, retrieved 2010-01-30
  11. http://blog.typekit.com/2010/12/08/type-rendering-font-outlines-and-file-formats/
  12. Wardle, Tiffany (2009-07-16), Typegirl - Most of the important foundries are supporting #webfont, tumblr, retrieved 2010-02-05
  13. Shapiro, Melissa (2009-10-20), Mozilla Supports Web Open Font Format, Mozilla Foundation, retrieved 2010-02-05
  14. Colyer, Matt (2010-09-21), Typekit adds Chrome 6 WOFF support, Typekit
  15. Hachamovitch, Dean (2010-06-23), HTML5, Native: Third IE9 Platform Preview Available for Developers, Microsoft
  16. KDE SVN Revision 1088984, KDE Bugzilla, 2010-02-12, retrieved 2011-10-14
  17. A first glimpse at Opera 11.10 "Barracuda", Opera Software, 2011-02-17, retrieved 2011-02-17
  18. Web specifications support in Opera Presto 2.7, Opera
  19. Safari Features, Apple, 2011-06-06, retrieved 2011-10-14
  20. Safari 5.1 Changelog, FileHippo.com, retrieved 2011-10-14
  21. Bug 38217 - [chromium] Add WOFF support, WebKit
  22. Bug 31302 - Add WOFF support for @font-face, WebKit
  23. CSS Fonts Module Level 3
  24. "Webfonts are not loading in Firefox". Fontspring. Retrieved 2013-01-01.
  25. Chromium 36 Release Notes, Google
  26. Opera 26 Release Notes, Opera Software ASA
  27. Firefox 35 Release Notes, Mozilla Developer Network

External links

This article is issued from Wikipedia - version of the Sunday, May 01, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.