size-adjust
A CSS @font-face setting that scales a font's glyphs, used to make a fallback font take up the same space as the web font.
In more detail
Fallback fonts are often wider or narrower than the web font. Scaling them with size-adjust, plus ascent and descent overrides, keeps lines the same length so nothing moves when the web font loads.
Related terms
- fallback font — The locally installed font shown until a web font loads, or if it fails.
- next/font — The Next.js font module, which downloads fonts at build time, serves them from your own domain and sets up fallbacks that avoid layout shift.
Taught in
- Image & Font Optimization: Zero Layout Shift Assets — Next.js 15 & Modern App Router Architecture