Guide · 10 min read

Fallback stacks that survive first paint.

Your custom web font loads in 200ms on fibre and three seconds on the subway. The fallback stack is what users read in between — and on a slow connection it may be all they ever read. It deserves as much thought as the hero font, and modern CSS makes it possible to swap almost invisibly.

Key takeaways

  • Every stack needs a named primary, one or two credible fallbacks, and a generic family last.
  • The system-ui stack is the strongest default for UI and body text — zero bytes, native rendering.
  • Match fallback metrics, not names: x-height and average width matter more than style.
  • size-adjust, ascent-override and descent-override eliminate most font-swap layout shift.
  • Use font-display: swap for brand type, optional when zero shift matters more.
  • Preload only the weights used above the fold, and subset aggressively.

On this page

  1. 1. Anatomy of a good stack
  2. 2. The modern system stack, and why it works
  3. 3. Metric overrides: the part most teams skip
  4. 4. font-display and the loading strategy
  5. 5. Testing it properly

The system stack

system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif — native on every platform, instant, and metrically close to most custom sans faces.

Match metrics, not names

The right fallback is the one whose x-height and average character width mirror your web font, regardless of how similar the letterforms look.

Override the metrics

size-adjust, ascent-override and descent-override bring a fallback into visual parity so layout does not reflow on load.

End with a generic

Always close a stack with sans-serif, serif or monospace. It is the guaranteed last resort on unusual devices.

Anatomy of a good stack

A font stack has three jobs, in order of who reads what:

  • The primary — your licensed or self-hosted web font, what the design intends.
  • The fallbacks — locally installed faces likely to be present and metrically close, read by anyone on a slow connection or with web fonts blocked.
  • The generic — sans-serif, serif or monospace, the guaranteed floor.

Three stacks cover most projects:

  • UI / body: "Your Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif
  • Editorial: "Your Serif", Charter, "Iowan Old Style", Georgia, "Times New Roman", serif
  • Code and data: "Your Mono", ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace

The modern system stack, and why it works

system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif renders as the operating system's own UI font on every platform: San Francisco on Apple devices, Segoe UI Variable on Windows, Roboto on Android. It is instant, hinted for the platform's rendering engine, and includes complete weight ramps and tabular figures.

Two practical notes. First, the system-ui keyword can resolve unexpectedly in a few localisations, which is why -apple-system and the named faces follow it. Second, it is a legitimate primary choice, not only a fallback — if a product does not need brand type in its interface, shipping zero font bytes is a real performance and accessibility win.

Metric overrides: the part most teams skip

Choosing a visually similar fallback is not enough. What causes visible reflow is a difference in x-height, average advance width, ascent and descent. Modern CSS lets you correct all four on the fallback itself:

  • size-adjust scales all glyphs by a percentage to match the web font's apparent size.
  • ascent-override and descent-override force the line box to match, which is what keeps vertical rhythm stable.
  • line-gap-override completes the picture where the two fonts disagree on default leading.

The pattern is to declare a local-only @font-face that wraps the fallback, using src: local("Arial") plus the override descriptors, then name that face in your stack rather than Arial directly. Tune size-adjust by overlaying a paragraph in both fonts and adjusting until the line breaks land in the same places.

font-display and the loading strategy

  • swap — show the fallback immediately, swap to the web font when ready. The right default for brand-critical type.
  • optional — the browser may skip the web font entirely on a slow connection, so there is effectively no shift. Best when stability outranks fidelity.
  • fallback — a short block period then swap within a limited window. A reasonable middle ground.
  • block — hides text while loading. Avoid; invisible text is worse than the wrong font.

Alongside this: self-host rather than using a third-party CDN, preload only the one or two weights that appear above the fold, subset to the character sets you actually ship, and prefer a single variable file over four static weights when you need three or more. Our variable fonts guide covers where that threshold sits.

Testing it properly

Preview both your web font and its intended fallback side by side at 14 to 16px — the size where differences actually matter — in real sentences rather than a pangram. If the shapes and rhythm diverge sharply, pick a closer fallback before shipping.

FontViewer.app is useful here because it renders the fonts genuinely installed on your machine, which is exactly the set your visitors' fallback will be drawn from. Put the web font and two fallback candidates into a project, compare them in the same specimen, then confirm the choice in the browser with the network throttled and web fonts disabled — the only test that reflects what a first-time visitor on a bad connection sees.

Frequently asked questions

What is the best web-safe font stack in 2026?

For interface and body text, the system-ui stack is hard to beat: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif. It renders as the native OS UI font everywhere, costs zero bytes, and is metrically close to most custom sans-serifs, which makes it an excellent fallback as well as a legitimate primary choice.

How do I stop layout shift when a web font loads?

Pick a fallback with a similar x-height and width, then tune it with size-adjust, ascent-override and descent-override in a dedicated @font-face block. Combined with font-display: swap, this lets the fallback occupy nearly the same space as the web font so text does not reflow when the real file arrives.

Should I use font-display: swap or optional?

Use swap for brand-critical type where the correct font must eventually appear, and optional when you would rather never shift layout — with optional, the browser may skip the web font entirely on a slow connection. Avoid block, which hides text while the font loads.

Do generic families like sans-serif still matter?

Yes, and every stack should end with one. It is the guaranteed last resort when nothing else resolves, including on unusual devices, embedded browsers and systems with restricted font sets. Ending a stack with a specific named font instead is a small but avoidable risk.

How can I test my fallback font against my web font?

Render both at your real body size, in real sentences, side by side. FontViewer.app reads the fonts already installed on your machine, so you can preview the actual local fallback your visitors will see next to the intended web font at 14 to 16px and judge whether the swap will be noticeable.

Related reading

Ready to try FontViewer.app?

Preview every font on your computer in under a minute. Free to start.