CLS Font Fallback & CSS Size-Adjust Generator
Stop text from jumping when web fonts finish loading. Overlay your custom font onto a system fallback (Arial, Georgia, or Times New Roman), tune size-adjust and ascent-override metrics, and copy ready-to-use CSS.
Scan Any Website for Font-Induced Layout Shift Mistakes
Enter your live website URL. Our auditor inspects all external Google Fonts, @font-face rules, and stylesheets to diagnose the exact layout shift mistakes penalizing your Google PageSpeed score.
Font Pairings & Overrides
Select your fonts and adjust metric scale percentagesDual-Layer Visual Stacking Sandbox
Cyan = Custom Web Font • Pink = Fallback System FontPack my box with five dozen liquor jugs
Google Core Web Vitals monitors every micro-movement on the viewport. When fallback fonts have different cap-heights and ascenders than custom web fonts, paragraphs jump unexpectedly, frustrating users and reducing SEO rankings.
Pack my box with five dozen liquor jugs
Google Core Web Vitals monitors every micro-movement on the viewport. When fallback fonts have different cap-heights and ascenders than custom web fonts, paragraphs jump unexpectedly, frustrating users and reducing SEO rankings.
Generated Zero-CLS CSS
Paste directly into your stylesheet/* Fallback Font with Zero-CLS Overrides */
@font-face {
font-family: 'Inter-Fallback';
src: local('Arial');
ascent-override: 90.5%;
descent-override: 22.5%;
line-gap-override: 0.0%;
size-adjust: 107.5%;
}
/* Use fallback in font-family stack */
body {
font-family: 'Inter', 'Inter-Fallback', sans-serif;
}
How CSS Font Overrides Prevent Layout Shift
FOUT vs. FOIT
FOUT (Flash of Unstyled Text) uses font-display: swap to show a system font immediately, then swaps in your web font. It improves First Contentful Paint, though mismatched letter sizes cause CLS unless fallback metrics are aligned.
The size-adjust Property
size-adjust scales every glyph in your fallback @font-face by a fixed percentage without changing your CSS font-size, matching line lengths to your web font before it loads.
Ascent & Descent Overrides
ascent-override sets the height above the baseline, while descent-override sets the depth below it. Matching both keeps vertical paragraph heights steady during font swaps.
Frequently Asked Questions
Do modern browsers support @font-face metric overrides?
Yes. size-adjust, ascent-override, descent-override, and line-gap-override are supported across current versions of Chrome, Edge, Firefox, and Safari.
Can I use these rules with WordPress, Shopify, or Google Fonts?
Yes. Frameworks like Next.js next/font generate similar overrides automatically; for WordPress, Shopify, Astro, or custom CSS sites, paste the generated @font-face block straight into your stylesheet.
Does font fallback matching also help LCP and FCP?
Yes. Pairing font-display: swap with matched fallback metrics lets browsers paint readable text immediately (improving FCP and LCP) without triggering a CLS penalty when the web font arrives.