FiFont
← All guides

Web design

Test typography for the web

Use responsive type scales and local font files to make text comfortable on different screens.

1. Start with body size

Test real content at the target viewport instead of choosing a size from a screenshot. A 16px starting point can be useful, but the font and audience matter.

2. Choose a readable line height

Test paragraphs at desktop and mobile widths, and check contrast for small text.

3. Make headings responsive

Use a fluid clamp calculation to interpolate between explicit minimum and maximum viewport sizes. Review the output in your layout.

4. Host only the files you need

Download the appropriate style, preserve the license, and use the self-hosting CSS from Font Details. Load only needed weights and verify fallback behavior.

Proof an article at three widths

Start with 16px body text and a 1.5 line-height in a real article layout. Compare a 28px heading at 360px viewport and a 42px heading at 1200px; use the Fluid type calculator to derive the bounded rule. Inspect the computed size at an intermediate width, then test a long translated heading and the same article with the custom font blocked.

Common pitfall

Responsive font sizing alone does not prevent overflow. Use flexible containers, a tested fallback and actual browser zoom; do not assume that a font which looks good in a large specimen is suitable for every body role.

Calculate fluid type →

Continue learning

Typography reference with visual examples →