
CSS-Tricks · 2 min readCSS & layout
Expanded Font Fallbacks
Learn how to create a custom fallback font using @font-face with size-adjust to preserve visual hierarchy when the primary web font fails to load. This technique lets you control fallback sizing without relying on experimental CSS functions, ensuring consistent UI appearance.
- Define a local fallback font via @font-face and assign it a custom name
- Apply size-adjust in the @font-face rule to modify fallback font size
- Include the fallback font in the font-family stack before generic families