Sub topic 12
Testing the pairing with real content
This chapter assumes you can set type in CSS, know the terms x-height, weight, and line height, and have already chosen a pair and assigned roles. A pairing that looks good in a specimen can fail on a real page. Testing finds those failures before readers do.
Why specimens mislead
Specimen pages show short, ideal strings at large sizes on a white background. Your page has long headings, numbers, links, captions, and paragraphs read at 16 px on a phone. Contrast and shared structure show up differently under those conditions. A serif with fine hairlines looks elegant at 64 px and thin at 14 px. Two faces with matching x-heights in a specimen can still look mismatched once their fallbacks load.
Build a test page
Use your actual content, or the closest realistic copy. Do not use placeholder text. Lorem ipsum has no long words, no numerals, and no quotation marks, so it hides spacing and line-break problems.
Include these elements:
- The longest and shortest real headings.
- At least three paragraphs of body text, with a link, a bold phrase, and an italic phrase.
- A caption, a list, and a table or a set of numbers.
- Any all-caps labels or buttons.
The following page loads both faces and the type styles from the earlier chapters. Open it and resize the window.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pairing test</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+3:wght@400;600&display=swap">
<style>
body { font-family: "Source Sans 3", system-ui, sans-serif; font-size: 1.125rem; line-height: 1.6; max-width: 40rem; margin: 2rem auto; padding: 0 1rem; }
h1 { font-family: "Playfair Display", Georgia, serif; font-size: 2.5rem; line-height: 1.15; }
.caption { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; }
</style>
</head>
<body>
<h1>Why the 1,284 Lighthouse Keepers Never Left</h1>
<p>Over 40 winters, the keepers logged weather at 6:00 and 18:00. See the <a href="#">full logbook</a> for the <em>handwritten</em> entries and <strong>unusual</strong> readings.</p>
<p class="caption">Figure 1. Wind speed, 1921–1961.</p>
</body>
</html>Run these checks
Work through the checks in order. Each one targets a specific failure.
- Size sweep. View the page at body size and at the smallest size you use. Check that the display face keeps its thin strokes and the text face stays open and legible.
- Squint test. Blur your eyes or apply a blur filter. The hierarchy should survive: headings read as headings, body as body. If two levels merge, increase contrast in size or weight.
- x-height match. Place a heading word and a body word next to each other, for example in an inline span. If one looks larger at the same font size, adjust with
font-size-adjustor a manual size change. - Fallback test. Block the web fonts in your browser's developer tools, or throttle the network. Confirm the fallback pair still holds together and the layout does not jump when the real fonts load.
- Screen test. Check a phone, a laptop, and a low-density display if you can. Rendering differs across operating systems, and thin strokes suffer most on low-resolution screens.
- Content stress. Paste in your longest heading and a number-heavy paragraph. Look at numerals, since some faces use old-style figures that look uneven in a table.
Read the results
Record what you see for each check, then decide what to change.
| Symptom | Likely cause | Fix |
|---|---|---|
| Heading looks smaller than body at equal size | Different x-heights | Adjust size or use `font-size-adjust` |
| Display hairlines vanish at small sizes | Display face used below its intended size | Raise the size or use a sturdier weight |
| Levels blur in the squint test | Too little contrast in size or weight | Widen the size or weight gap |
| Layout shifts on load | Fallback metrics differ from the web font | Choose a closer fallback and use `font-display` |
Change one thing at a time. If you alter size, weight, and fallback together, you will not know which change fixed the problem.
Exercise
You test a pairing and find that headings look noticeably smaller than body text at the same font size, but only after you disable the web fonts. Which check found this, and what is the most likely cause?
Show answer
The fallback test found it. The fallback fonts (Georgia and system-ui) have different x-heights from the web fonts, so the apparent size differs. Fix it by applying font-size-adjust to both rules, or by choosing fallbacks with x-heights closer to the web fonts.
Exercise
Why is lorem ipsum a poor choice for a pairing test?
Show answer
It has no realistic long words, numerals, quotation marks, or heading lengths, so it hides spacing, line-break, and numeral problems that real content would expose.