Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Web Open Font Format

From Wikipedia, the free encyclopedia
(Redirected fromWOFF)
"WOFF" and "Woff" redirect here. For other uses, seeWOFF (disambiguation).
File format for fonts in web pages
Web Open Font Format
Filename extension
  • .woff
  • .woff2
Internet media type
  • font/woff
  • font/woff2
  • application/font-woff (deprecated)[1][2]
Magic number
  • 77 4F 46 46 ("wOFF" inASCII)
  • 77 4F 46 32 ("wOF2" inASCII)
Developed byW3C
Type of formatFont file
Container forSFNT fonts
Website

TheWeb Open Font Format (WOFF) is afont format for use inweb pages.WOFF files areOpenType orTrueType fonts, with format-specific compression applied and additionalXML metadata added.The two primary goals are first to 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.

Standardization

[edit]

The first draft of WOFF 1 was published in 2009 by Jonathan Kew, Tal Leming, andErik van Blokland,[3] with reference conversion code written by Jonathan Kew.[4] Following the submission of WOFF to theWorld Wide Web Consortium (W3C) by theMozilla Foundation,Opera Software andMicrosoft in April 2010,[5][6] the W3C commented that it expected WOFF to soon become the "single, interoperable [font] format" supported by all browsers.[7] The W3C published WOFF as aworking draft in July 2010.[8][9] Thefinal draft was published as aW3C Recommendation on 13 December 2012.[10]

WOFF 2.0 significantly improved compression efficiency compared to WOFF 1.0, primarily through the introduction ofBrotli, a new byte-level compression algorithm developed by Jyrki Alakuijala and Zoltan Szabadka. Brotli's effectiveness led to its widespread adoption, notably for HTTP content encoding. WOFF 2.0 was standardized as a W3C Recommendation in March 2018,[11] with Google providing the reference implementation.[12]

Each version of the format has received the backing of manytype foundries.[13]

Specification

[edit]

WOFF is a wrapper containingSFNT-based fonts (TrueType orOpenType) that have been compressed using a WOFF-specific encoding tool so they can be embedded in a Web page.[14] WOFF Version 1 uses the widely availablezlib compression (specifically, the compress2 function),[14] typically resulting in a file size reduction for TrueType files of over 40%.[15] Since OpenType CFF files (withPostScript glyph outlines) are already compressed, their reduction is typically smaller.[16]

Browser support

[edit]

Major web browsers support WOFF:

WOFF 2.0 is supported in:

  • Google Chrome (since version 36),[27]
  • Edge (since version 14),[28]
  • Opera (since version 26),[29]
  • Firefox (since version 35)[30]
  • Safari (since version 10).[31]

Some browsers enforce asame-origin policy, preventing WOFF fonts from being used across different domains. This restriction is part of theCSS 3 Fonts module,[32] 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'sMIME type to serve the files correctly.[33] Since February 2017, the proper MIME type isfont/woff for WOFF 1.0 andfont/woff2 for WOFF 2.0.[1][2] Prior to February 2017, the standard MIME type for WOFF 1.0 wasapplication/font-woff, and some applications may still use the old type, though it is now deprecated.[1]

See also

[edit]

References

[edit]
  1. ^abc"Media Types".IANA. 2017-10-12. Retrieved2017-10-17.
  2. ^abLilley, Chris (February 2017)."The "font" Top-Level Media Type".IETF.doi:10.17487/RFC8081.RFC 8081. Retrieved2017-10-17.{{cite journal}}:Cite journal requires|journal= (help)
  3. ^Kew (Mozilla), Jonathan; Leming (Type Supply), Tal; van Blokland (LettError), Erik (2009-10-23),WOFF File Format (draft of 2009-10-23),Mozilla Foundation, archived fromthe original on 2010-03-09, retrieved2010-01-30
  4. ^WOFF conversion reference code, retrievedMay 8, 2016
  5. ^WOFF File Format 1.0 Submission Request to W3C
  6. ^Galineau, Sylvain (2010-04-23),Meet WOFF, The Standard Web Font Format, Microsoft, archived fromthe original on 29 May 2010
  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 (2010-08-17),W3C Backs the WOFF WebFont Standard,SitePoint
  10. ^"WOFF File Format 1.0".www.w3.org. Retrieved2019-08-31.
  11. ^W3C: WOFF File Format 2.0
  12. ^Reference WOFF2 generation code, retrievedMay 8, 2016
  13. ^Wardle, Tiffany (2009-07-16),"Most of the important foundries are supporting #webfont",Typegirl, retrieved2010-02-05 – viatumblr
  14. ^abKew (Mozilla), Jonathan; Leming (Type Supply), Tal; van Blokland (LettError), Erik (2009-10-23),WOFF File Format (draft of 2009-10-23),Mozilla Foundation, archived fromthe original on 2010-03-09, retrieved2010-01-30
  15. ^Stefanov, Stoyan (2009-10-20),@font-face gzipping - take II, PHPied.com, retrieved2010-01-30
  16. ^"The Typekit Blog | Type rendering: Font outlines and file formats".
  17. ^Shapiro, Melissa (2009-10-20),Mozilla Supports Web Open Font Format, Mozilla Foundation, retrieved2010-02-05
  18. ^Colyer, Matt (2010-09-21),Typekit adds Chrome 6 WOFF support, Typekit
  19. ^Hachamovitch, Dean (2010-06-23),HTML5, Native: Third IE9 Platform Preview Available for Developers, Microsoft
  20. ^KDE SVN Revision 1088984,KDE Bugzilla, 2010-02-12, retrieved2011-10-14
  21. ^A first glimpse at Opera 11.10 "Barracuda", Opera Software, 2011-02-17, retrieved2011-02-17
  22. ^Web specifications support in Opera Presto 2.7, Opera
  23. ^Safari Features,Apple, 2011-06-06, retrieved2011-10-14
  24. ^Safari 5.1 Changelog, FileHippo.com, retrieved2011-10-14
  25. ^Bug 38217 - [chromium] Add WOFF support, WebKit
  26. ^Bug 31302 - Add WOFF support for @font-face, WebKit
  27. ^Chromium 36 Release Notes, Google
  28. ^Speed up page load with WOFF 2.0 fonts in Microsoft Edge, Microsoft, 3 May 2016
  29. ^Opera 26 Release Notes, Opera Software ASA
  30. ^Firefox 35 Release Notes, Mozilla Developer Network
  31. ^What's new in Safari, Apple
  32. ^CSS Fonts Module Level 3
  33. ^"Webfonts are not loading in Firefox". Fontspring. Retrieved2013-01-01.

External links

[edit]
Page
Paragraph
Character
Typeface anatomy
Capitalization
Visual distinction
Horizontal aspects
Vertical aspects
Typeface
classifications
Roman type
Blackletter type
Gaelic type
Specialist
Punctuation (List)
Typesetting
Typographic units
Digital typography
Typography in other
writing systems
Related articles
Related template
Products and
standards
Recommendations
Notes
Working drafts
Guidelines
Initiative
Deprecated
Obsoleted
Organizations
Elected groups
Working groups
Community & business groups
Closed groups
Software
Browsers
Conferences
Retrieved from "https://en.wikipedia.org/w/index.php?title=Web_Open_Font_Format&oldid=1278771514"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp