Filename extension | .woff |
---|---|
Internet media type | application/font-woff[1] |
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. This means that bandwidth is an important parameter.
Contents |
Submission as a standard[edit]
Following the submission of WOFF by the Mozilla Foundation, Opera Software and Microsoft on April 8, 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 on July 27, 2010,[7][8] and it became a W3C Recommendation on 13 December 2012.
Specification[edit]
WOFF is essentially a wrapper that contains sfnt-based fonts (TrueType, OpenType, or Open Font Format) 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%.[9] Like OpenType fonts, WOFF supports both Postscript and TrueType outlines for the glyphs.[10]
Vendor support[edit]
The format has received the backing of many of the main font foundries[11] and has been supported by all major browsers:
- Firefox since version 3.6[12]
- Google Chrome since version 6.0[13]
- Internet Explorer 9[14]
- Konqueror since KDE 4.4.1[15]
- Opera since version 11.10[16] (Presto 2.7.81)[17]
- Safari[18] 5.1[19]
- other WebKit-based browsers since WebKit build 528[20][21]
Some browsers enforce a same origin policy, preventing WOFF fonts from being used across different domains. Some servers may require the manual addition of WOFF's MIME type to serve the files correctly;[22] the proper MIME type is application/font-woff
,[1] not application/x-font-woff
.
See also[edit]
References[edit]
- ^ a b Appendix B: Media Type registration, W3C, 2011-08-14
- ^ a b c 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
- ^ WOFF File Format 1.0
- ^ 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
- ^ Stefanov, Stoyan (2009-10-20), @font-face gzipping - take II, PHPied.com, retrieved 2010-01-30
- ^ http://blog.typekit.com/2010/12/08/type-rendering-font-outlines-and-file-formats/
- ^ 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
- ^ "Webfonts are not loading in Firefox". Fontspring. Retrieved 2013-01-01.
External links[edit]
- Current specification of the WOFF file format at the World Wide Web Consortium's website
- ttf → woff - An online utility to convert ttf files to woff files
- font2web.com converts TrueType or OpenType font file to .eot and .woff files
- Compatibility table for support of WOFF fonts in browsers
|