Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 487147 of The Web Open Font Format (WOFF)

  • Revision slug: Web/Guide/WOFF
  • Revision title: The Web Open Font Format (WOFF)
  • Revision id: 487147
  • Created:
  • Creator: DBaron
  • Is current revision? No
  • Comment

Revision Content

WOFF (the Web Open Font Format) is a new web font format developed by Mozilla in concert with Type Supply, LettError, and other organizations. It uses a compressed version of the same table-based sfnt structure used by TrueType, OpenType, and Open Font Format, but adds metadata and private-use data structures, including predefined fields allowing foundries and vendors to provide license information if desired.

There are three main benefits to using WOFF:

  1. The font data is compressed, so sites using WOFF will use less bandwidth and will load faster than if they used equivalent uncompressed TrueType or OpenType files.
  2. Many font vendors that are unwilling to license their TrueType or OpenType format fonts for use on the web will license WOFF format fonts. This improves availability of fonts to site designers.
  3. Both proprietary and free-software browser vendors like the WOFF format, so it has the potential of becoming a truly universal, interoperable font format for the web, unlike other current font formats.

Using WOFF

You can use the {{cssxref("@font-face")}} CSS property to use WOFF fonts for text in web content. It works exactly like OpenType and TrueType format fonts do, except will likely let your content download more efficiently due to the addition of compression.

Tools for working with WOFF fonts

Tools for working with WOFF fonts are available.

Specifications

Specification Status Comment
{{SpecName('WOFF1.0', '', '')}} {{Spec2('WOFF1.0')}} Initial specification.

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 6.0 {{CompatGeckoDesktop("1.9.1")}} 9.0 11.10 5.1
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatUnknown}} {{CompatUnknown}} {{CompatGeckoMobile("1.9.1")}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

See also

  • {{cssxref("@font-face")}}
  • {{CSS_Reference:Fonts}}

Revision Source

<p><span class="seoSummary"><strong>WOFF</strong>&nbsp;(the <strong>Web Open Font Format</strong>) is a new web font format developed by Mozilla in concert with Type Supply, LettError, and other organizations. It </span>uses a compressed version of the same table-based <code>sfnt</code> structure used by TrueType, OpenType, and Open Font Format, but <span class="seoSummary">adds metadata and private-use data structures, including predefined fields allowing foundries and vendors to provide license information if desired.</span></p>
<p>There are three main benefits to using WOFF:</p>
<ol>
 <li>The font data is compressed, so sites using WOFF will use less bandwidth and will load faster than if they used equivalent uncompressed TrueType or OpenType files.</li>
 <li>Many font vendors that are unwilling to license their TrueType or OpenType format fonts for use on the web will license WOFF&nbsp;format fonts. This improves availability of fonts to site designers.</li>
 <li>Both proprietary and free-software browser vendors like the WOFF&nbsp;format, so it has the potential of becoming a truly universal, interoperable font format for the web, unlike other current font formats.</li>
</ol>
<h2 id="Using_WOFF">Using WOFF</h2>
<p>You can use the {{cssxref("@font-face")}}&nbsp;CSS property to use WOFF fonts for text in web content. It works exactly like OpenType and TrueType format fonts do, except will likely let your content download more efficiently due to the addition of compression.</p>
<h2>Tools for working with WOFF fonts</h2>
<p><a href="https://people.mozilla.org/~jkew/woff/">Tools for working with WOFF</a> fonts are available.</p>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('WOFF1.0', '', '')}}</td>
   <td>{{Spec2('WOFF1.0')}}</td>
   <td>Initial specification.</td>
  </tr>
 </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
 <table class="compat-table">
  <tbody>
   <tr>
    <th>Feature</th>
    <th>Chrome</th>
    <th>Firefox (Gecko)</th>
    <th>Internet Explorer</th>
    <th>Opera</th>
    <th>Safari</th>
   </tr>
   <tr>
    <td>Basic support</td>
    <td>6.0</td>
    <td>{{CompatGeckoDesktop("1.9.1")}}</td>
    <td>9.0</td>
    <td>11.10</td>
    <td>5.1</td>
   </tr>
  </tbody>
 </table>
</div>
<div id="compat-mobile">
 <table class="compat-table">
  <tbody>
   <tr>
    <th>Feature</th>
    <th>Android</th>
    <th>Chrome for Android</th>
    <th>Firefox Mobile (Gecko)</th>
    <th>IE Mobile</th>
    <th>Opera Mobile</th>
    <th>Safari Mobile</th>
   </tr>
   <tr>
    <td>Basic support</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatGeckoMobile("1.9.1")}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatUnknown}}</td>
   </tr>
  </tbody>
 </table>
</div>
<h2 id="See_also">See also</h2>
<ul>
 <li>{{cssxref("@font-face")}}</li>
 <li>{{CSS_Reference:Fonts}}</li>
</ul>
Revert to this revision