Skip to content
← Typography Tools

Optical Size Adjuster

Match the x-height of a fallback font to your web font so that swaps cause zero layout shift and no visible jump.

Related Tools

Related Tool
Font Stack Builder
Related Tool
Font Loading Strategy
Related Tool
Responsive Type Calculator
Related Tool
CSS Tools

What font-size-adjust does

font-size-adjust is a CSS Fonts Module Level 4 property that normalizes the visual size of fallback fonts so that they appear at the same x-height as your primary font. Two fonts can have the same font-size value in CSS but render at noticeably different sizes because their internal metrics differ. font-size-adjust closes that gap by scaling the fallback to match a target aspect.

The most common syntax is font-size-adjust: ex-height 0.53, which says: render this fallback so its x-height is 0.53 times the font-size. If your primary font has an ex aspect of 0.53 and your fallback has 0.46, the fallback would otherwise look smaller. The CSS engine scales the fallback up to match. The visible result is a swap where the body text holds its line length and vertical rhythm.

Why this matters for CLS

When a web font finishes loading and replaces the fallback, the browser reflows the entire block of text. Different fonts at the same font-size yield different cap heights, x-heights, and line widths. Words shift. Lines reflow. Content below jumps down. Google's Core Web Vitals count this as Cumulative Layout Shift (CLS), one of the page-experience measurements it reports in Search Console.

font-size-adjust fixes the visible portion. Combined with size-adjust, ascent-override, and descent-override on the fallback @font-face, you can produce a swap that is invisible to the user. The Adjuster here gives you the ex-height ratio of common web fonts and the closest match across the system stack so you can plug the right number into your CSS.

Common Use Cases

E-commerce sites where layout shift translates directly to abandoned carts use the Adjuster to nail their web font swap. Documentation sites with long-form reading benefit because the swap no longer reflows the entire scroll position. App shells where the UI font is critical to feel use it to keep the system fallback visually consistent.

Designers spec-ing a new brand font use it to verify their fallback choice before any code ships. If the ex-height ratios are too far apart, the design tells them to pick a different fallback rather than fighting it later.

Worked example: every value measured from the font file

Each metric used to be a single ex-height number, also used when you picked cap-height or ch-width. On October 13, 2026 we downloaded each font and measured it with fontTools 4.62: ex-height and cap-height from the OS/2 table (sxHeight, sCapHeight) and ch from the advance width of "0", each divided by units per em. Variable fonts were instanced at weight 400, Inter and Roboto Flex also at optical size 16. Google Fonts came from the google/fonts repository; Arial, Georgia, Times New Roman and Verdana from Microsoft's freely distributed Core Fonts (version 2.x; current Windows builds may differ slightly).

FontOld exex-heightcap-heightchFile version
Arial0.51930.51860.71580.5562Version 2.82
Arimo (Arial metrics clone)new0.52830.68800.5562Version 1.341
DejaVu Sansnew0.54690.72900.6362Version 2.37
Geist0.52400.53000.71000.6630Version 1.800
Georgia0.49200.48140.69290.6138Version 2.05
IBM Plex Sans0.51600.51600.69800.6000Version 3.201
Inter0.53630.54250.72750.6289Version 4.001
Lato0.51030.50650.71650.5800Version 2.015
Montserrat0.51800.52500.70000.6620Version 9.000
Nunito0.51840.48400.70500.6000Version 3.602
Open Sans0.53500.53520.71390.5718Version 3.003
Poppins0.54000.54800.69800.62804.004
Raleway0.47960.51900.71000.6120Version 4.026
Roboto0.52790.52830.71090.5620Version 3.015
Roboto Flex0.52850.51070.71090.5591Version 3.200
Source Sans 30.48600.48600.66000.4970Version 3.052
Times New Roman0.44760.44730.66210.5000Version 2.82
Tinos (Times metrics clone)new0.45900.65480.5000Version 1.340
Verdananew0.54540.72710.6357Version 2.35
Work Sans0.51720.50000.66000.6220Version 2.012

Then we loaded every file into Chromium 141 and measured 1ex, 1cap and 1ch at 1,000px. All 60 values matched fontTools within 0.0002, once optical size was taken into account: at 1,000px Chromium picks Inter's largest optical size, whose ex-height is 0.5156, 5% below its 14px design, and Roboto Flex drops to 0.4463 (13% lower). That is why the tool asks for the text size when you measure a font with an optical-size axis.

Why matching x-height matters to readers

Two fonts at the same font-size can look a size apart because the em box says nothing about how tall the letters are. Legge and Bigelow's review of print size in vision science (Journal of Vision, 2011) measures legibility by x-height and finds fluent reading across x-heights of roughly 0.2° to 2° of visual angle. When Radner and colleagues equalised x-height between Helvetica and Times Roman reading charts (40 readers, 2022), reading acuity and speed did not differ between the two fonts, and Wallace and colleagues normalised font size by perceived size before comparing reading speed across fonts (ACM TOCHI, 2022). Matching the fallback's x-height to the web font's is the same idea applied to a font swap.

Frequently Asked Questions

Which browsers support font-size-adjust?
According to MDN's compatibility data: Firefox since version 3 (2008), Safari since 16.4 (March 2023; the two-value and from-font syntax since 17), and Chrome and Edge since 127 (July 2024). Older browsers ignore the property, so the fallback simply shows at its natural size.
What is the ex-height aspect ratio?
The height of a lowercase x divided by the font size, as the font declares it in its OS/2 table (sxHeight / units per em). Measured values in this tool run from 0.4473 (Times New Roman) to 0.5480 (Poppins), so at the same font-size Poppins' lowercase letters are about 23% taller. Most reading is lowercase, which is why this ratio sets how large a font looks.
Should I use ex-height or cap-height as the metric?
ex-height for body text, cap-height for headings set in capitals or for UI labels, ch-width when line length matters most (it matches the width of the digit 0). The tool shows the result for the metric you pick; switch the chips to compare.
What is the difference between font-size-adjust and size-adjust?
font-size-adjust is a CSS property applied to any element to scale the rendered size of its computed font. size-adjust is a descriptor used inside an @font-face block to permanently scale a font when it is registered. font-size-adjust is what you reach for when you want to keep the fallback in step with the primary; size-adjust is what you reach for when you want to make two fonts match before either is even chosen.
How do variable font instances affect the ex-height ratio?
Weight and especially optical size can change it. Montserrat's ex-height is 0.517 at its default Thin weight and 0.525 at Regular; Inter's is 0.5459 at 14px and 0.5156 at its 32px optical size, which browsers select automatically for large text. The built-in values are at weight 400 (and 16px for Inter and Roboto Flex); to measure another size, use Measure my font file and set the text size.
How accurate are the precomputed values?
They are read from the font files (October 13, 2026 versions) and match what Chromium 141 measures for 1ex, 1cap and 1ch within 0.0002 em. Your copy of a system font may be a different version, and optical sizing changes the numbers at large sizes, so for the font you actually ship use Measure my font file, or font-size-adjust: ex-height from-font.
Will this fix font-display swap layout shift completely?
Not on its own. It matches the height of lowercase letters, which removes most of the visible size jump, but the fallback's letters are still a different width, so lines can rewrap and push content down. Add size-adjust, ascent-override and descent-override to the fallback @font-face (the Font Loading Strategy tool can generate these) to get close to zero shift.
Is there a performance cost to using font-size-adjust?
Negligible. The CSS engine reads the OS/2 sxHeight value once when the font is registered, computes the scale factor, and applies it during layout. There is no per-frame cost. The only real cost is the time you spend choosing the right value, which the Adjuster reduces from hours to seconds.