The Web Open Font Format (WOFF)
WOFF(Web Open Font Format) â ÑоÑÐ¼Ð°Ñ ÑÑиÑÑов, ÑазÑабоÑаннÑй Mozilla ÑовмеÑÑно Ñ Type Supply, LettError, и дÑ. Ðо ÑÑÑи â ÑÑо ÑжаÑÐ°Ñ Ð²ÐµÑÑÐ¸Ñ ÑоÑмаÑа sfnt, иÑполÑзÑемого ÑÑиÑÑами TrueType, OpenType, и Open Font Format, но Ñ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ÑÑÑÑ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¼ÐµÑа-даннÑÑ
и пÑиваÑнÑÑ
ÑÑÑÑкÑÑÑ Ð´Ð°Ð½Ð½ÑÑ
(private-use data structures). ÐапÑимеÑ, в ÑоÑмаÑе пÑедÑÑмоÑÑÐµÐ½Ñ Ð¿Ð¾Ð»Ñ Ð´Ð»Ñ Ð²Ð²Ð¾Ð´Ð° инÑоÑмаÑии о лиÑензии.
ÐÑеимÑÑеÑÑва иÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ WOFF:
- 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.
- 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.
- 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.
СÑÑеÑÑвÑÐµÑ Ð´Ð²Ðµ веÑÑии WOFF, оÑлиÑаÑÑиÑ
ÑÑ Ð¸ÑполÑзÑемÑм алгоÑиÑмом ÑжаÑиÑ: WOFF и WOFF2. РпÑавиле @font-face они опÑеделÑÑÑÑÑ Ð² деÑкÑипÑоÑе format как 'woff' или 'woff2' ÑооÑвеÑÑÑвенно.
ÐÑполÑзование WOFF
You can use the @font-face CSS property to use WOFF fonts for text in web content. It works exactly like OpenType and TrueType format fonts do, except it 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.
sfnt2woffandwoff2sfntconvert between WOFF and OpenType.
СпеÑиÑикаÑии
| Specification |
|---|
| WOFF File Format 1.0 > # OverallStructure > |
| WOFF File Format 2.0 > # FileStructure > |