Calculate a zero-CLS webfont fallback
Calculate size-adjust, ascent-override, descent-override, and line-gap-override from font metrics. Generate CSS and a matching PDF proof.
Inter webfont
Paste text or add a tight crop of one line. Enter the letters exactly as shown to rank candidate shapes.
Match metrics
Enter production measurements or use the example values to try the calculator.
- size-adjust
- 103.448%
- ascent-override
- 93.646%
- descent-override
- 23.317%
- line-gap-override
- 0%
Measure the same text at the same size
Enter primary and fallback advances in pixels, then enter the primary font’s ascent, positive descent, and line gap as percentages of em. The calculator divides each vertical metric by the width scale.
Test the first paint under real constraints
Load the adjusted fallback in the stack, throttle the network, and record the font swap at breakpoints with long labels and narrow text frames. Different glyph advances can still change wrapping.
Font matching tools
Font licensing and replacement guides
Frequently asked questions
Does adjusted fallback CSS guarantee zero CLS?
The overrides can reduce font-driven layout shifts by matching sample width and vertical metrics. Verify wrapping and actual CLS on the deployed page across browsers, scripts, and weights.
What comes in the paid specimen pack?
The ZIP contains a CSS rule with the calculated adjustments and a PDF proof showing the selected candidate, specimen, metrics, and license source. Font files require a separate download from the linked source.