What WOFF2 is
WOFF2 is a font format made for the web. Inside is the same set of outlines and tables as OpenType, but with stronger Brotli compression. The file is usually noticeably smaller than WOFF, especially for large Cyrillic families.
All current browsers support WOFF2, so adding TTF, EOT or SVG fonts to new projects is usually unnecessary. If your audience uses very old devices, check your statistics and keep WOFF as a fallback if needed.
Minimal setup
@font-face {
font-family: "Literata Variable";
src: url("/assets/fonts/literata-cyrillic-wght-normal.woff2") format("woff2");
font-weight: 200 900;
font-display: swap;
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
Check before publishing
- the file contains Ґ, Є, І, Ї and the apostrophe you need;
- the licence permits web embedding and format conversion;
- the fallback stack has a font with similar letter widths so the text does not jump;
- the server sends the
font/woff2MIME type and caching headers.
Keep it simple: one format, a few subsets, a clear cache. Everything else is optimisation after measurement.
