
Web Font Loading for Multilingual Sites: Variable Fonts, Subsetting, and CLS Control
Variable fonts plus unicode-range subsetting plus metric overrides help keep fonts within a 100 KB first-paint budget across 20 locales. The subsetting and the @font-face descriptors.
TL;DR: Variable fonts are Baseline Widely available — a single binary covers the weight, width, slant, and optical-size axes that previously required a separate static file for each style. WOFF2 is the only required format. The remaining work for a 20-locale site is operational: unicode-range subsetting per script, font-display strategy per usage class, and the size-adjust / ascent-override / descent-override / line-gap-override descriptors on @font-face that reduce the Cumulative Layout Shift caused by font swaps. This guide covers the @font-face building blocks (format, font-display, variable axes), the subsetting strategy for Latin / CJK / Arabic / Cyrillic / Indic / Thai, and a suggested performance budget of 100 KB of fonts on first paint.
Web font reality in 2026
The web-font landscape has consolidated.
Variable fonts are Baseline Widely available. A single variable binary can replace several static font files, and it can save bytes when a design system uses multiple weights or widths; measure both options with your own font, because file size depends on glyph count and the number of axes. The standard axes — wght (weight), wdth (width), slnt (slant), opsz (optical size), ital (italic) — cover most typographic needs; custom axes give type designers room for grade, casual / formal, and other ranges.
WOFF2 is the universal format. Every current engine supports it; no fallback to WOFF, TTF, or EOT is necessary. SVG fonts are deprecated and should not appear in any 2026 stylesheet.
Color font support depends on the color format. The original COLR / CPAL layered format (COLRv0) renders in every current engine. COLRv1 (gradients and compositing) ships in Chromium and Firefox but not Safari, and OpenType-SVG ships in Firefox and Safari but not Chromium, as of October 2026 (MDN browser compatibility data). Custom color emoji and multi-color icons are a viable design path, but serve them with a tech() fallback chain — for example format('woff2') tech(color-COLRv1) followed by a monochrome source — and test each engine.
System fonts via -apple-system, system-ui, BlinkMacSystemFont, and Segoe UI remain the cheapest option when brand consistency permits. A "system font stack" loads zero web fonts and renders instantly with the user's OS-provided typeface; the trade-off is the loss of a specific brand voice across platforms.
Tooling is mature. Google Fonts, Adobe Fonts, Bunny Fonts (privacy-respecting drop-in for Google Fonts), and self-hosted pipelines can serve subsetted WOFF2. Self-hosting is one option for compliance-sensitive sites. The wider context is the CJEU's Schrems II ruling (July 2020), which invalidated the EU-US Privacy Shield; a specific case is the Munich Regional Court judgment of January 20, 2022 (LG München I, 3 O 17493/20). The court held that a website operator that passed the plaintiff's IP address to Google through embedded Google Fonts had neither the plaintiff's consent nor a legitimate interest under the GDPR, because the operator could use Google Fonts without the page connecting to Google's servers; it granted an injunction and awarded the plaintiff EUR 100 in damages.
font-display strategy
font-display controls what the browser shows during the brief window between the page parsing the font reference and the font being available to render. Five values cover the common needs; the durations below are the spec's recommended values, and browsers may use different ones.
| Value | Behavior |
|---|---|
| `swap` | Show the fallback immediately, swap to the web font when loaded |
| `optional` | Use the web font only if it is available for the first paint of the text (for example, from the cache); otherwise stick with the fallback |
| `fallback` | Show fallback, brief 100ms block, swap to web font if it loads within 3 seconds; otherwise stay on fallback |
| `block` | Draw the text invisibly for up to 3 seconds, then show the fallback and swap in the web font whenever it loads |
| `auto` | Engine default; many browsers behave close to `block` |
The spec recommends swap only for small pieces of text where the particular font is very important, such as a logo, and describes fallback and optional as values for body text. swap avoids invisible text (FOIT — flash of invisible text) and accepts a brief layout shift (FOUT — flash of unstyled text). With proper metric overrides (covered below), the FOUT becomes much less noticeable.
optional suits users on slow connections. It avoids FOUT entirely — the user sees the fallback for the first paint unless the web font is available in time for that paint, for example from the cache. Later page views get the web font if it finished downloading and is cached; the spec lets browsers abort or deprioritize that download, so this is not guaranteed. Slow-connection users may not see the web font on the first visit, but they also never see a layout shift; their experience is fast and consistent.
fallback is a middle ground — brief block, swap if fast, fall back if not. Useful when the brand font is highly distinctive and a brief block is preferable to FOUT, but only on connections fast enough to hit the swap window.
block is rarely the right choice outside icon fonts and other short text where the exact font is essential. For body text, block produces extended invisible text on slow connections — usually a worse experience than a brief fallback swap.
auto should not be set explicitly; if you read your stylesheet and see font-display: auto, replace it with one of the explicit values.
Combine font-display with <link rel="preload"> for critical fonts:
<link rel="preload" href="/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>Preload the variable font that the LCP element renders with. Do not preload every font; preload competes with other resource fetches and is most valuable for the one or two fonts that block first paint.
Variable fonts
Variable fonts let one binary span a range of typographic styles.
Use the standard CSS properties for the standard axes:
.heading {
font-weight: 700;
font-stretch: 110%;
font-style: italic;
}font-weight drives the wght axis (any number from 1 to 1000, within the range the font supports). font-stretch drives wdth (any non-negative percentage, within the range the font supports; the keywords span 50% to 200%). font-style: italic drives ital; font-style: oblique 12deg drives slnt. The standard properties give you continuous control over the standard axes.
Use font-variation-settings only for non-standard axes:
.display {
font-variation-settings: 'GRAD' 88, 'YOPQ' 50;
}Custom axes use four-character tags that start with an uppercase letter and use only uppercase letters or digits. The font's documentation tells you which custom axes exist; common ones include GRAD (grade — adjusts color without changing width), YOPQ (parametric y-opaque — the thickness of thin horizontal strokes such as bars and hairlines), XOPQ (parametric x-opaque — the thickness of thick strokes such as stems; definitions per the Google Fonts axis registry), MONO (mono / proportional spacing).
Variable axes can be animated with CSS transitions, through the standard properties or through font-variation-settings:
.btn {
font-weight: 400;
transition: font-weight 0.2s ease;
}
.btn:hover {
font-weight: 700;
}The browser interpolates the axis value smoothly on hover, scrolling, or any other state change. No font swap is needed; the same binary just renders differently. Weight changes usually change glyph widths and can reflow text, so animate a width-neutral axis such as GRAD when the font offers one.
Fall back to static when needed by listing two sources in one @font-face rule:
@font-face {
font-family: 'Inter';
src: url('inter-var.woff2') format('woff2') tech(variations),
url('inter-regular.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
}Engines that recognize format('woff2') tech(variations) (Chrome 108, Firefox 107, and Safari 17 onward, as of October 2026, MDN browser compatibility data) use the variable font; engines that do not recognize the first source skip it and fall through to the static file. Some older engines drop the whole src descriptor instead; if that tail matters, declare a plain src with only the static file before this one, as MDN shows. The legacy spelling format('woff2-variations') is still accepted as an equivalent in current engines if an older toolchain emits it (MDN). The font-weight: 100 900 range tells the engine that the variable font covers the full weight axis.
unicode-range subsetting for multilingual sites
The unicode-range descriptor on @font-face limits which characters trigger the font download. The browser only fetches a subset's font file when characters in that range appear on the page. For a 20-locale site, this is the difference between shipping every locale's fonts on every page and shipping only what the page needs.
The Latin subset:
@font-face {
font-family: 'Brand';
src: url('brand-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153,
U+02BB-02BC, U+02C6, U+02DA, U+02DC,
U+2000-206F, U+2074, U+20AC, U+2122,
U+2191, U+2193, U+2212, U+2215;
}This is roughly the basic Latin range plus common punctuation and symbols. Western European accented letters are already inside U+0000-00FF. Latin Extended-A (U+0100-017F) adds Central and Eastern European, Baltic, and Turkish letters; Latin Extended-B (U+0180-024F) adds further letters, including the Romanian comma-below forms.
The script-specific ranges:
| Script | Unicode range |
|---|---|
| Cyrillic basic | `U+0400-04FF` |
| Cyrillic supplement | `U+0500-052F` |
| Greek | `U+0370-03FF` |
| Arabic | `U+0600-06FF` |
| Arabic supplement | `U+0750-077F` |
| Hebrew | `U+0590-05FF` |
| Hangul (Korean syllables) | `U+AC00-D7AF` |
| Hiragana | `U+3040-309F` |
| Katakana | `U+30A0-30FF` |
| CJK Unified Ideographs | `U+4E00-9FFF` |
| Devanagari | `U+0900-097F` |
| Bengali | `U+0980-09FF` |
| Tamil | `U+0B80-0BFF` |
| Thai | `U+0E00-0E7F` |
| Vietnamese (Latin additions, as in Google Fonts' `vietnamese` subset) | `U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB` |
Declare one @font-face rule per script with the corresponding unicode-range. The browser dispatches downloads based on the characters it finds on the rendered page; a Korean page triggers the Hangul subset plus whatever Latin subset its spaces, digits, and punctuation need, an Arabic page triggers the Arabic subset plus the same Latin basics, an English page with one Greek phrase triggers Latin and Greek but not the others.
CJK and Arabic — the bandwidth problem
CJK and Arabic deserve special handling because their unsubset binaries are enormous.
Han ideographs alone are tens of thousands of glyphs. An unsubset CJK font runs to many megabytes — large enough that loading it on every page view is operationally unacceptable. The production patterns for CJK fonts:
Frequency-binned subsets break the font into multiple subsets by character frequency. For example, the most common few hundred characters can load first, the next tier second, the long tail loads last. Each subset has its own unicode-range covering the relevant codepoints. The browser fetches only the subsets needed for the current page's characters.
Per-page subsetting extracts the exact characters used on a page and serves a font file containing only those glyphs. Build-time character extraction (run during static-site generation or content publishing) produces a custom font per page; the trade-off is operational complexity for the smallest possible font size.
Adobe and Google's Source Han Sans and Noto CJK ship pre-subset binaries broken by region (Simplified / Traditional / Japanese / Korean). Google Fonts' CSS API returns dozens of small files keyed to unicode-range for these families; the site only downloads the subsets for the characters actually rendered.
Arabic has its own subsetting consideration. Arabic positional forms (isolated / initial / medial / final) are handled by OpenType layout (the init, medi, fina features), so the subsetting tool must preserve OpenType features when extracting glyphs. The fonttools subset command keeps the features required for script shaping, including Arabic init / medi / fina / isol, by default; --layout-features='*' keeps every feature, including optional ones such as stylistic sets. Check the output either way, because a custom feature list can drop shaping features.
Self-hosted pipelines using fonttools subset produce unicode-range-bound subsets:
pyftsubset brand.woff2 \
--unicodes="U+0600-06FF,U+0750-077F" \
--layout-features='*' \
--flavor=woff2 \
--output-file=brand-arabic.woff2Run one subset command per script; each produces a separate .woff2 file with its own unicode-range declaration in the @font-face rule.
Reducing CLS with font metric overrides
Cumulative Layout Shift from font swaps is a measurable Core Web Vitals issue. When the web font replaces the fallback, text reflows because the two fonts have different metrics — different x-height, ascent, descent, and line-gap. Paragraphs reflow, headings shift down, and the page jumps as the user is reading.
The @font-face descriptors size-adjust, ascent-override, descent-override, and line-gap-override let you tune the fallback font's metrics to match the web font (as of October 2026, Safari supports size-adjust but not the three override descriptors, per MDN browser compatibility data):
@font-face {
font-family: 'Brand-Fallback';
src: local('Arial');
size-adjust: 107.5%;
ascent-override: 92%;
descent-override: 23%;
line-gap-override: 0%;
}
body {
font-family: 'Brand', 'Brand-Fallback', sans-serif;
}size-adjust scales the fallback so its x-height roughly matches the web font's. ascent-override and descent-override tune the line-box ascent and descent to match. line-gap-override matches the line-gap.
Computing the override values manually is tedious. The fontaine library, Capsize, and similar tools compute the override values automatically from the web font's metrics. Run the tool once per web font; copy the generated CSS into your stylesheet.
When the overrides match closely, the swap is less noticeable because line height and layout shift less, and the layout shift caused by the font swap is reduced.
Performance budget for fonts
A focused budget keeps fonts from dominating page weight.
Target under 100 KB total for fonts on a typical first paint, including the web font for the user's locale. A full variable font can be large because one file carries the whole weight range, so meeting the target means subsetting that file to the locale's script and preloading only that one subset; load other scripts, italics, or secondary families lazily. Measure the subsetted file size on your own stack. Latin-script subsets carry far fewer glyphs than CJK ones, so the target is easier to meet on Latin-script pages; multilingual pages with CJK or Arabic content need careful subsetting to fit.
Critical font preload covers only the fonts above the fold. Deeper page content can lazy-load additional scripts or families as they are referenced by the rendered text.
Font subsetting at the routing layer serves different unicode-range CSS to different language paths. A /ko/ URL gets a stylesheet that loads the Hangul subset and skips the Devanagari subset; a /hi/ URL inverts the choice. The pattern is one @font-face per script, gated by unicode-range, with the routing layer ensuring only the relevant scripts appear in the served stylesheet for each locale.
Cache aggressively. Long max-age (one year) plus content-addressed font URLs (hash in the path) means fonts are fetched once and never again until the file content changes. Fonts rarely change; so this cache tends to have a high hit rate.
Self-hosting gives full control over caching, headers, and subset granularity at the cost of operational ownership. For compliance-sensitive sites, self-hosting avoids sending visitors' IP addresses to a third-party font server; the GDPR concerns with third-party font CDNs are real and have produced legal action in the EU.
Cross-locale audit checklist
The audit confirms the font pipeline behaves correctly across all locales.
Render every locale at the design-system showcase page. Verify that fallback metric overrides minimize CLS for each script — Latin, CJK, Arabic, Cyrillic, and any others your locale list includes have different metrics, and the overrides need to be tuned per-script.
Confirm only the locale's required unicode-range subsets download per locale page. Open the Network panel filtered by font and load each locale; the file list should include only the subsets for that locale's script.
Test variable-axis rendering across engines. Standard axes set through font-weight, font-stretch, and font-style should render consistently across engines, but compare screenshots to confirm; custom axes are font-specific, so test them in each engine.
Verify RTL locales render with correct positional forms. For Arabic, the isolated, initial, medial, and final forms are produced by OpenType layout features; if subsetting dropped the features, Arabic reads as detached letters instead of connected script. Visual diff against native rendering on a known-good system.
Confirm the system-font fallback chain is locale-appropriate. A Hangul-supporting fallback for Korean ('Apple SD Gothic Neo', 'Malgun Gothic', sans-serif) ensures fallback rendering looks correct even when the brand font is loading. Arabic, Hebrew, and CJK locales need their own appropriate fallback chains.
Implementation priorities for the next planning cycle
- Migrate the brand font to a variable font binary if available; replace the per-style static font files with one variable file
- Set
font-display: optionalorfallbackfor body text (optionalon slow-connection-heavy locales); reserveswapfor small pieces of text where the brand font is very important; useblockonly for small pieces of text where the particular font is required for the page to be usable - Add
<link rel="preload" as="font" type="font/woff2" crossorigin>for the LCP font only - Subset every
@font-facewith explicitunicode-range— one per script in your locale list (Latin, Cyrillic, CJK, Arabic, Devanagari, Thai, Hebrew, Greek as needed) - Compute fallback metric overrides with fontaine or Capsize and add
size-adjust/ascent-override/descent-override/line-gap-overrideto a@font-facefallback rule - Run a Network-panel audit per locale; confirm only the relevant subsets download per page