Sub topic 12
Testing the Pairing with Real Content
This chapter assumes you can set type in CSS, you know the vocabulary from earlier chapters (x-height, stroke modulation, contrast, roles), and you have already picked two typefaces and assigned them roles. Here you check whether the pairing holds up outside a specimen sheet.
Why a specimen is not a test
A pairing that looks good on a type foundry's preview page can still fail on your site. Specimens use short, pleasant strings such as "Handgloves" or a single flattering headline. Your site has long headlines, numbers, captions, buttons, and body text that runs for hundreds of words. Testing means putting the pair under the conditions it will actually face.
Three things change the result:
- Content. Real words have real lengths, capital letters, numerals, and punctuation.
- Size. Contrast that works at 40 px can collapse at 14 px.
- Screen. Pixel density, rendering engine, and fallback fonts change how strokes and spacing look.
Step 1: Gather real content
Collect the worst cases before you start, not only typical ones. Build a test page that includes:
- The longest headline you expect, and the shortest.
- A headline with a long word, a proper name, or a number.
- Several paragraphs of body text, at least 60 to 80 words each, with links, italics, and bold.
- A list, a table cell, a caption, a button label, and a form label.
- Text in all the languages you support, including accented letters.
- Numerals in context, such as prices, dates, and percentages.
Avoid lorem ipsum for the final judgment. It has no long words, no numbers, and uneven letter frequency that does not match your language. Placeholder text hides problems such as awkward line breaks, collisions between capitals and tall ascenders, and numerals that look too heavy or too light next to the other face.
Step 2: Test at real sizes
Set the pair at the sizes your layout will use, not at the size that fits your design tool window. A reasonable check covers a small, a medium, and a large size for each role.
The following CSS is a test harness. It uses the sizes from the earlier chapter, so you can view the display and text faces together and tune them.
:root {
--font-display: "Playfair Display", Georgia, serif;
--font-text: "Source Sans 3", system-ui, sans-serif;
}
body {
font-family: var(--font-text);
font-size: 1.125rem;
line-height: 1.6;
}
h1 {
font-family: var(--font-display);
font-size: 2.5rem;
font-weight: 700;
line-height: 1.15;
}
.caption {
font-family: var(--font-text);
font-size: 0.875rem;
font-weight: 600;
letter-spacing: 0.02em;
}What to look for at each size
| Size range | Typical role | What can go wrong |
|---|---|---|
| Large (32 px and up) | Display headline | Thin hairlines in a high-contrast serif look elegant here. Tight line height may cause ascenders and descenders to collide on wrapped lines. |
| Medium (16 to 20 px) | Body text | The two faces may look mismatched in size if their x-heights differ. Weight differences may be too small to notice, or too large. |
| Small (12 to 14 px) | Captions, labels | Hairlines in a display serif can vanish. Letters need more spacing. A third style may creep in. |
A common failure is using the display face below the size it was designed for. A serif with very thin strokes can look fragile in a small sub-heading, even though it looks refined in a hero title. If the sub-heading is breaking, change its role: move it to the text family and use weight and size for emphasis instead.
Step 3: Check the x-height match
Two typefaces set at the same font-size can look different in size because their x-heights differ. A face with a large x-height looks bigger. This shows up most when a heading and body text sit close together, or when a fallback font replaces your chosen one.
font-size-adjust scales each font so its x-height is a set fraction of the font size. This keeps the apparent size of both faces, and of their fallbacks, consistent.
body {
font-family: "Source Sans 3", system-ui, sans-serif;
font-size-adjust: 0.5;
}
h1, h2, h3 {
font-family: "Playfair Display", Georgia, serif;
font-size-adjust: 0.5;
}To test it, switch the property on and off while looking at a paragraph with an inline phrase set in the other face. Watch for the moment the lines stop looking uneven. If the value 0.5 does not suit your pair, measure each face's x-height ratio and choose a value near the one that the body face already has. Note that font-size-adjust changes the used size of the text, so line height and layout will shift slightly. Re-check wrapping after you enable it.
Step 4: Test on real screens
Rendering differs between operating systems, browsers, and display types.
- On low-density screens, thin strokes may be rounded to a whole pixel and look heavier or uneven. A high-contrast serif is at most risk at small sizes.
- On high-density screens, the same hairlines render cleanly, so a design can look good on your laptop and poor on a cheaper monitor.
- Light text on a dark background looks bolder than dark text on light. A weight that works in light mode may look heavy in dark mode.
- Mobile screens change the line length. Headings that fit on one line on a desktop may wrap to three lines on a phone, and the display face's width then matters.
Test at least one low-density screen, one high-density screen, and one phone. If you cannot get all of them, use your browser's device emulation and then confirm on one real phone. Emulation does not reproduce font rendering well, so do not rely on it for judging stroke thickness.
Step 5: Test the fallback
Web fonts load after the page starts to display. Until they arrive, the browser shows a fallback, and when they load the text may shift. The fallback is part of your pairing for a short time, and for users with blocked fonts it may be permanent.
Check these states:
- Fonts not loaded. Throttle the network in the developer tools and watch the page.
- Only one font loaded. The display face may arrive before the text face. See which combination of fallback and loaded font looks acceptable.
- Fonts blocked. Disable web fonts and check that the page remains readable and that the hierarchy still shows.
Choose fallbacks with a similar x-height and width to the primary font, so text does not jump when the real font swaps in. In the stack above, Georgia is a reasonable serif fallback for a display serif, and system-ui is a reasonable sans-serif fallback for the text face.
Step 6: Squint, blur, and compare
Some checks need no tools.
- Squint test. Blur your eyes or zoom out. The hierarchy should still read: the headline stands out, the body forms an even gray block, and captions are clearly secondary. If two levels merge, the contrast between them is too weak.
- Grayscale test. Look at the page with colour removed. If the hierarchy depends on colour alone, the type pairing is not doing its job.
- Swap test. Swap the two typefaces' roles in a copy. If the swapped version looks about as good, your choice may be arbitrary, and the roles need more differentiation.
- Single-face test. Set the page in only one of the two faces, using weight and size. If it works as well, the second face is not adding anything.
Step 7: Read, don't only look
Designers often judge type by looking at it for ten seconds. Reading is a different task. Set a full article and read at least three paragraphs.
- Do the lines tire your eyes? Check line length (about 45 to 75 characters), line height, and whether the text face is too light.
- Do the italic and bold styles work with the roman? Some pairings fail only when an italic or bold appears.
- Do numerals sit well? Old-style figures in the display serif and lining figures in the sans serif can clash in a table or price list.
- Do the display face's capitals look right in an all-caps label? Check letter-spacing for any uppercase text.
Ask someone who did not build the page to read it and tell you what they noticed. If they mention the fonts, something may be off. If they mention the content, the type is doing its job.
Recording what you find
Write down each decision so that it survives the next redesign. A short table is enough.
| Check | Result | Fix applied |
|---|---|---|
| Long headline wraps to three lines on phone | Line height too tight | Raised `line-height` from 1.1 to 1.2 on small screens |
| Caption hairlines vanish at 12 px | Display face used too small | Moved captions to text family at weight 600 |
| Fallback text jumps on load | Fallback x-height smaller | Added `font-size-adjust: 0.5` |
| Price numerals look heavy | Display figures too bold | Set prices in the text family |
Common mistakes in testing
- Testing only the headline. Body text is where most reading happens.
- Testing only on a large, high-density display.
- Judging by the specimen's sample text.
- Forgetting that italic, bold, and small caps may not exist in the web font file you load, so the browser fakes them.
- Fixing a problem by adding a third typeface. Try changing size, weight, spacing, or role first.
Exercise
A pairing of a high-contrast display serif and a humanist sans serif looks good in your design tool. On a test page you notice that sub-headings at 14 px in the serif look thin and uneven on a low-density monitor, and that body text seems smaller than headings set at the same font size. Name two changes you would make and the reason for each.
Show answer
First, move the 14 px sub-headings into the text (sans serif) family and use weight and letter-spacing for emphasis, because the display serif's hairlines were designed for large sizes and break up at small sizes on low-density screens. Second, apply font-size-adjust (for example 0.5) to both families, or adjust font sizes by hand, so their x-heights match, because the faces have different x-heights and so look different in size at the same font-size value. Then re-check line wrapping, since font-size-adjust changes the used size.
Exercise
List three tests you can run on a pairing without any special tools, and say what each one reveals.
Show answer
Squint test: shows whether the hierarchy still reads when detail is blurred, and whether two levels merge. Grayscale test: shows whether the hierarchy depends on colour rather than type. Single-face test (or swap test): shows whether the second typeface adds anything, or whether the roles are clear enough that swapping them would matter.