Typography guides

Compare Heading and Body Typography on Your Device

·

The same family can feel different at heading and reading sizes. Compare real text at the sizes and line heights you expect to use, then save the settings for each role.

Font Preview Tool

Compare a serif heading and a system body stack

Leave Compare heading and body enabled. Set Heading family to Newsreader, size to 42 px, weight to 600 and line height to 1.15. Keep Body family at System UI, size at 18 px, weight at 400 and line height at 1.55.

Copy the same sentence into Heading text and Body text. Try a heading letter spacing of −0.5 px and see whether the letters still read clearly. Verify that the body keeps its own 0 px spacing.

Compare a serif heading and a system body stack
PanelFamilySizeLine height
HeadingNewsreader42 px1.15
BodySystem UI18 px1.55

Open the Font Preview ToolW3C CSS Fonts family matching

Preview your own file and check its weight range

Open a TTF, OTF, WOFF or WOFF2 in Heading local font or Body local font. The selected panel displays the detected family, format and weight range. The other panel keeps its settings.

Type any accents or symbols you need in your real copy. Show character sample to inspect a basic set of letters and punctuation. The browser may use a fallback for missing glyphs.

W3C CSS Font Loading FontFace constructorW3C CSS Fonts family matching

Apply the two class rules in your project

Copy each panel’s CSS or download it. The heading class is sample-heading and the body class is sample-body unless you rename them. For a local file, keep the original font next to the stylesheet or set the relative URL to your asset folder.

Inspect the rules on the target device at a narrow viewport. If a line becomes crowded, revise the size or line height for the affected panel and copy its rule again.

W3C CSS Fonts family matching

Common questions

Does changing a body setting change the heading?

Each panel has independent family, text, size, weight, spacing, line height and italic settings.

What if my system lacks the selected named family?

The browser picks a fallback from the emitted stack. Test with a bundled face or your own font file when the exact family matters.

Sources

Put it into practice.

Related guides