From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/guide/woff/index.html | 65 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 files/ru/web/guide/woff/index.html (limited to 'files/ru/web/guide/woff') diff --git a/files/ru/web/guide/woff/index.html b/files/ru/web/guide/woff/index.html new file mode 100644 index 0000000000..330047ef99 --- /dev/null +++ b/files/ru/web/guide/woff/index.html @@ -0,0 +1,65 @@ +--- +title: The Web Open Font Format (WOFF) +slug: Web/Guide/WOFF +tags: + - Шрифты + - шрифт +translation_of: Web/Guide/WOFF +--- +

WOFF(Web Open Font Format) — формат шрифтов, разработанный Mozilla совместно с Type Supply, LettError, и др. По сути — это сжатая версия формата sfnt, используемого шрифтами TrueType, OpenType, и Open Font Format, но с возможностью добавления мета-данных и приватных структур данных (private-use data structures). Например, в формате предусмотрены поля для ввода информации о лицензии.

+ +

Преимущества использования 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. +
  3. 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.
  4. +
  5. 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.
  6. +
+ +

Существует две версии WOFF, отличающихся используемым алгоритмом сжатия: WOFF и WOFF2. В правиле {{cssxref("@font-face")}} они определяются в дескрипторе format как 'woff' или 'woff2' соответственно.

+ +

Использование 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 it will likely let your content download more efficiently due to the addition of compression.

+ +

Tools for working with WOFF fonts

+ + + +

Спецификации

+ + + + + + + + + + + + + + + + + + + + + +
СпецификацияСтатусКомментарий
{{SpecName('WOFF2.0', '', '')}}{{Spec2('WOFF2.0')}}New compression algorithm
{{SpecName('WOFF1.0', '', '')}}{{Spec2('WOFF1.0')}}Initial specification.
+ +

Совместимость с браузерами

+ + + +

{{Compat("css.at-rules.font-face")}}

+ +

См. также

+ + -- cgit v1.2.3-54-g00ecf