What unicode-range does for performance
unicode-range is a CSS descriptor inside @font-face that limits when the browser downloads a font. With unicode-range: U+0000-00FF declared on the Latin subset, the browser only fetches the font file if the page contains a character in that range. Cyrillic, Greek, and CJK subsets are skipped entirely. The result is that a Latin-only page downloads one small file instead of the full multi-script family.
Google Fonts splits every font into roughly 10 to 20 unicode-range subsets behind the scenes. When you embed a Google Font, the browser only downloads the subsets your page actually uses. Self-hosting can achieve the same result if you build the @font-face blocks with the right unicode-range values. The Preview tool tells you which ranges your font actually covers, so you know which to declare.
How the Preview parses your font
Drop a TTF, OTF, WOFF or WOFF2 file into the Preview and it reads the font's cmap table directly in the browser. The cmap table maps Unicode code points to glyph indices inside the font. The Preview checks every code point in 12 common blocks (Basic Latin, Latin-1 Supplement, Latin Extended-A and -B, Greek and Coptic, Cyrillic, Hebrew, Arabic, General Punctuation, Currency Symbols, Mathematical Operators, Arrows) and reports how many have a glyph. The percentage is mapped code points divided by every slot in the block, so control characters and unassigned code points count against it (see the worked example below). Export JSON lists the missing code points for each block.
Common Use Cases
Performance engineers self-hosting fonts use the Preview to see which blocks their font file covers, then ship one @font-face block per subset. Designers picking a brand font use it to confirm coverage of the scripts they need before licensing. Developers debugging missing glyphs use it to see whether the font maps a character at all, rather than the browser silently substituting from a fallback. i18n teams export the JSON and check the missing code points against the characters their languages need, such as Polish or Vietnamese accented letters.
Worked example: why a complete Latin font shows 74.2%
We loaded two common system fonts into the Preview in Chromium on October 12, 2026: DejaVu Sans 2.37 and Liberation Sans Regular. Then we checked every block against the fonts' own cmap tables, read independently with fontTools 4.62. For each block, the number of mapped code points matched fontTools exactly in both fonts. The percentages need reading with care, though. The Preview divides by every slot in the block, including control characters and code points Unicode has not assigned yet.
| Block | Slots | Assigned, excluding controls (Unicode 15.0) | DejaVu Sans: Preview % | DejaVu Sans: share of assigned | Liberation Sans: Preview % |
|---|---|---|---|---|---|
| Basic Latin | 128 | 95 | 74.2% | 100% | 74.2% |
| Latin-1 Supplement | 128 | 96 | 75.0% | 100% | 75.0% |
| Greek and Coptic | 144 | 135 | 93.8% | 100% | 88.2% |
| Hebrew | 112 | 88 | 48.2% | 61.4% | 77.7% |
| Arabic | 256 | 256 | 64.5% | 64.5% | 0% |
| Currency Symbols | 48 | 33 | 54.2% | 78.8% | 47.9% |
| Mathematical Operators | 256 | 256 | 100% | 100% | 7.0% |
So 74.2% in Basic Latin and 75.0% in Latin-1 Supplement is the ceiling for any font. The remaining 33 and 32 slots in those blocks are C0 and C1 control characters, which fonts don't map. Greek and Coptic tops out at 93.8% for the same reason: 9 of its 144 slots are unassigned. Where the two columns agree, as with Arabic, the block has no gaps and the Preview's number is the real share. When you need to know exactly which characters are missing, use Export JSON. It lists every unmapped code point per block, including the control and unassigned ones, so filter those out before treating them as gaps.
From coverage to @font-face
The generated CSS gives one unicode-range line per block that has at least one glyph. Each line carries a comment with its percentage, so you can drop the blocks you don't need. Under the CSS Fonts Module Level 4 rules, a browser downloads a face only when the page uses a character inside its declared range. That only saves bytes if each range points at a font file actually subset to it, for example with fontTools' pyftsubset --unicodes=U+0000-00FF. All current browsers support unicode-range, and MDN's compatibility data lists it in Chrome 1, Firefox 36 and Safari 3.1.
Fonts are read in TTF, OTF, WOFF and WOFF2. WOFF2 needs a Brotli decompressor. Firefox 147+ and Safari 18.4+ have one built into DecompressionStream, and Chrome and Edge, which don't support the "brotli" format yet, use the page's own decoder.
Sources
Checked on .
- W3C, CSS Fonts Module Level 4: the unicode-range descriptor
- OpenType specification: cmap, Character to Glyph Index Mapping Table
- Unicode Consortium, Unicode code charts (block ranges)
- MDN, unicode-range and browser compatibility data (BCD 8.1.5)
- MDN, DecompressionStream() constructor: supported formats
- fontTools documentation: pyftsubset