Web Open Font Format
|Internet media type|
|Type of format||Font file|
|Container for||SFNT fonts|
The Web Open Font Format (WOFF) is a font format for use in web pages. WOFF files are OpenType or TrueType fonts, with format-specific compression applied and additional XML metadata added. The 2 primary goals are to first distinguish font files intended for use as web fonts from fonts files intended for use in desktop applications via local installation, and second to reduce web font latency when fonts are transferred from a server to a client over a network connection.
A Web Standard For Fonts
The WOFF specification was written by Jonathan Kew, Tal Leming, and Erik van Blokland, with reference conversion code written by Jonathan Kew. Following the submission of WOFF by the Mozilla Foundation, Opera Software and Microsoft in April 2010, the W3C commented that it expected WOFF soon to become the "single, interoperable [font] format" supported by all browsers. The W3C published WOFF as a working draft in July, and it became a W3C Recommendation in December that year.
WOFF is essentially a wrapper that contains SFNT-based fonts (TrueType or OpenType) that have been compressed using a WOFF-specific encoding tool to enable them to be embedded in a Web page. WOFF Version 1 uses the widely available zlib compression (specifically, the compress2 function), typically resulting in a file size reduction for TrueType files of over 40%. Since OpenType CFF files (with PostScript glyph outlines) are already compressed, their reduction is typically smaller.
Each version of the format has received the backing of many font vendors, also known as foundries and has been supported by all major browsers:
- Firefox since version 3.6
- Google Chrome since version 6.0
- Internet Explorer since version 9
- Konqueror since KDE 4.4.1
- Microsoft Edge
- Opera since version 11.10 (Presto 2.7.81)
- Safari 5.1
- other WebKit-based browsers since WebKit build 528
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
- Google Chrome (since version 36),
- Edge (since version 14),
- Opera (since version 26),
- Firefox (since version 35)
- Safari (since version 10).
Some browsers enforce a same-origin policy, preventing WOFF fonts from being used across different domains. This restriction is part of the CSS 3 Fonts module, 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 WOFFs MIME type to serve the files correctly. Since February 2017, the proper MIME type is
font/woff for WOFF 1.0 and
font/woff2 for WOFF 2.0. Prior to February 2017, the standard MIME type for WOFF 1.0 was
application/font-woff, and some applications may still use the old type, though it is now deprecated.
- "Media Types". IANA. 2017-10-12. Retrieved 2017-10-17.
- "The "font" Top-Level Media Type". IETF. February 2017. RFC . Retrieved 2017-10-17.
- Kew (Mozilla), Jonathan; Leming (Type Supply), Tal; van Blokland (LettError), Erik (2009-10-23), WOFF File Format (draft of 2009-10-23), Mozilla Foundation, retrieved 2010-01-30
- WOFF File Format 1.0
- WOFF conversion reference code, retrieved May 8, 2016
- WOFF File Format 1.0 Submission Request to W3C
- Galineau, Sylvain (2010-04-23), Meet WOFF, The Standard Web Font Format, Microsoft
- Team Comment on "WOFF File Format 1.0" Submission
- WOFF - Now loading fonts on websites, The H, 2010-07-28
- Buckler, Craig (2010-08-17), W3C Backs the WOFF WebFont Standard, SitePoint
- Reference WOFF2 generation code, retrieved May 8, 2016
- W3C: WOFF File Format 2.0
- Stefanov, Stoyan (2009-10-20), @font-face gzipping - take II, PHPied.com, retrieved 2010-01-30
- Wardle, Tiffany (2009-07-16), Typegirl - Most of the important foundries are supporting #webfont, tumblr, retrieved 2010-02-05
- Shapiro, Melissa (2009-10-20), Mozilla Supports Web Open Font Format, Mozilla Foundation, retrieved 2010-02-05
- Colyer, Matt (2010-09-21), Typekit adds Chrome 6 WOFF support, Typekit
- Hachamovitch, Dean (2010-06-23), HTML5, Native: Third IE9 Platform Preview Available for Developers, Microsoft
- KDE SVN Revision 1088984, KDE Bugzilla, 2010-02-12, retrieved 2011-10-14
- A first glimpse at Opera 11.10 "Barracuda", Opera Software, 2011-02-17, retrieved 2011-02-17
- Web specifications support in Opera Presto 2.7, Opera
- Safari Features, Apple, 2011-06-06, retrieved 2011-10-14
- Safari 5.1 Changelog, FileHippo.com, retrieved 2011-10-14
- Bug 38217 - [chromium] Add WOFF support, WebKit
- Bug 31302 - Add WOFF support for @font-face, WebKit
- Chromium 36 Release Notes, Google
- Speed up page load with WOFF 2.0 fonts in Microsoft Edge, Microsoft
- Opera 26 Release Notes, Opera Software ASA
- Firefox 35 Release Notes, Mozilla Developer Network
- What's new in Safari, Apple
- CSS Fonts Module Level 3
- "Webfonts are not loading in Firefox". Fontspring. Retrieved 2013-01-01.