# Diagnose Layout Shifts Caused by Web Font Swaps

https://ferkesh.net/knowledgebase/article/web-font-swap-layout-shift

A fallback font can occupy a different width and height from the loaded font. During replacement, headings can wrap differently and push content down. Reserve your decisions for confirmed measurements because image, ad and widget shifts can look similar.

![Cold frame: Fallback line breaks; Font ready: Final text metrics; Compare trace: Measure source of shift.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-15.svg#web-font-swap-layout-shift)

## Reproduce the shift

On staging, record on a typical mobile width with a cold cache and controlled network. Compare the first readable frame with the loaded font frame and review the performance trace. Note which text block changed height. Compare with a warm-cache reload where the font may already be present.

## Reduce the metric mismatch

Try a fallback with similar proportions. Where appropriate and supported, test metric overrides such as size-adjust for the fallback font face. Measure both short and long headlines, form labels and the navigation. Keep text readable during font loading and preserve language glyph coverage.

## Use preload selectively

Preload only a confirmed critical font resource using the correct type and crossorigin behavior, then compare it with the baseline. Loading every weight can contend with the hero image. Keep local lab observations and real-user field data separate, and verify repeatable improvements at multiple widths.

## Related Ferkesh Knowledge Base guides

- [How to Test Layout Shift Caused by Images Without Dimensions](https://ferkesh.net/knowledgebase/article/measure-image-layout-shift)
- [How to Measure a Repeatable Website Performance Baseline](https://ferkesh.net/knowledgebase/article/repeatable-website-performance-baseline)

## Official references

- [Typography — web.dev](https://web.dev/learn/design/typography/)

Last reviewed November 27, 2026.
