Sub topic 11
Choosing and pairing typefaces
This chapter assumes you know basic type vocabulary (typeface, size, weight, italic) and can read simple CSS. It builds on the earlier chapters about type scales and about weight and style as secondary cues. Here you decide which typefaces carry which level of the hierarchy, and how to combine them without making the page noisy.
Why typeface choice belongs in a hierarchy discussion
A typeface is a design of letterforms, such as Georgia or Helvetica. A font is one style of it, such as Georgia Bold Italic at 16 px. Size, weight, and spacing already separate headlines from subheads and body text. A second typeface adds one more signal on top of those. It is useful when it makes the levels easier to tell apart. It does harm when it adds differences the reader has to decode.
Treat typeface as the weakest of your cues. Size contrast does most of the ranking. Weight comes next. Typeface changes mostly set tone and help separate roles, for example headings in one family and running text in another. A layout with one well-chosen family often has a clearer hierarchy than a layout with four.
The working model: contrast on one axis, harmony on the rest
Most successful pairings follow one idea. The two typefaces differ clearly in one visible way and agree in the others. If they differ in everything, they compete. If they differ in almost nothing, the pairing looks like a mistake, because the reader can see the fonts are different without seeing why.
The common families of type are:
- Serif: letters have small strokes at the ends. Often used for long reading and for editorial tone.
- Sans serif: no end strokes. Often used for interfaces, short labels, and a neutral tone.
- Slab serif: serifs that are thick and blocky. Strong at large sizes.
- Monospace: every character has the same width. Used for code and data.
- Display: drawn for large sizes and personality. Poor for paragraphs.
The table lists the pairing strategies that work in practice.
| Strategy | What differs | What stays shared | Typical use |
|---|---|---|---|
| One family, several weights | Weight and size | Everything else | Documentation, apps, safe default |
| Superfamily (serif and sans from one designer) | Structure (serif or not) | Proportions, stroke rhythm | Editorial sites, reports |
| Serif and sans from different designers | Structure | Similar x-height and width | Blogs, magazines |
| Display headline, text body | Personality and size | A neutral body that stays out of the way | Posters, landing pages |
A superfamily is a set of typefaces designed together, such as Source Serif and Source Sans. It is the lowest-risk way to get a serif and sans pair, because the designer already matched their proportions.
Match the x-height, not the name
The x-height is the height of the lowercase letters relative to the capitals. Two typefaces set at the same font size look different in size when their x-heights differ. If a heading face has a tall x-height and the body face has a short one, the body can look too small beside it, even if your scale says it is correct.
Check this by setting a line in each face at the same size and comparing the lowercase letters. If one looks clearly larger, adjust. The CSS property font-size-adjust can normalize this. It scales each font so its x-height matches a given ratio. Browser support has improved, but test in the browsers you target before relying on it.
Assign roles, then write them down
Decide which typeface does which job before you write any styles. A simple role table prevents drift as the page grows.
- Headlines and subheads: the face that gives the page its character.
- Body text: the face chosen for long reading, at the baseline size from the type scale.
- Utility text: captions, labels, and code. Often the body face, or a monospace for code.
Two families are enough for almost every layout. A third needs a specific job, such as monospace for code samples. Beyond that you are usually using typeface changes where size or weight would do.
The CSS below stores the roles as custom properties, so a change to a role happens in one place.
:root {
--font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
--font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
--font-code: ui-monospace, "SF Mono", Consolas, monospace;
}
body {
font-family: var(--font-body);
font-size: 1rem;
line-height: 1.5;
}
h1, h2, h3 {
font-family: var(--font-heading);
font-weight: 700;
line-height: 1.2;
}
code, pre {
font-family: var(--font-code);
font-size: 0.9em;
}The stacks end with generic families (serif, sans-serif, monospace). If the named font fails to load, the browser still picks something of the right kind, so the hierarchy survives.
A heading in a serif over sans body gives a visible split between levels. You can reverse it, with sans headings over a serif body, which is common in long-form reading.
Decision flow
The flow below captures the order of choices. Start from the body, because it holds most of the page's reading.
Using one variable font for hierarchy
A variable font is a single file that holds a continuous range of a property, usually weight. One file can supply regular body text, semibold subheads, and bold headlines. This keeps the page fast and the levels harmonious, because everything comes from one design.
@font-face {
font-family: "Inter Var";
src: url("/fonts/InterVariable.woff2") format("woff2");
font-weight: 100 900;
font-display: swap;
}
body {
font-family: "Inter Var", system-ui, sans-serif;
font-weight: 400;
}
h2 { font-weight: 600; }
h1 { font-weight: 750; }The font-weight: 100 900 range in @font-face tells the browser the file covers every weight in between, which is why 750 works. This file path is an example, so point it at a font file you have the right to use.
Loading and performance
Each weight and style of a static font is usually a separate file. A pairing of two families with regular, italic, bold, and bold italic can need eight files. Each one adds a network request and delays text.
- Load only the weights you use. Count them in your CSS.
- Use
font-display: swapso text appears in the fallback font at once and switches when the web font arrives. - Expect a layout shift at the swap, because the fallback and the web font have different widths. Choose a fallback with similar metrics, and use the
size-adjustdescriptor in@font-faceon a local fallback to reduce the jump. - Check the license. Many fonts allow desktop use but not web embedding.
Common errors
- Pairing near-twins. Two similar sans serifs, such as Helvetica for headings and Arial for body text, look like an accident. Pick a clear contrast or use one family.
- Too many families. Three or more faces make the page look unplanned, and the reader cannot tell which difference carries meaning.
- Display face in body text. Faces drawn for large sizes have tight spacing and quirky letters that tire the eye in paragraphs.
- Ignoring the x-height. Matching font sizes numerically while the lowercase letters look mismatched.
- Using typeface to do size's job. If subheads look weak, increase the contrast of size or weight first. Swapping the family rarely fixes a ranking problem.
- Fake bold and italic. If a family lacks a bold or italic file, the browser synthesizes one by smearing or slanting the regular style. The result is uneven. Load the real style or avoid the need for it.
- Missing language coverage. A font without the characters your content needs falls back to another font mid-word. Check accents and symbols before committing.
Worked check
Suppose a blog uses a serif for headlines and body text, and sees weak separation between subheads and paragraphs. The tempting fix is to add a third, decorative face for subheads. A better order is to try these steps, stopping at the first one that works.
- Raise the size step between subheads and body using the type scale.
- Increase subhead weight from 400 to 600.
- Add space above each subhead, as covered in the spacing chapter.
- Switch subheads to a sans face already used elsewhere on the site.
Only the last step changes typeface, and it reuses a face the page already loads.
Exercise
A page uses Georgia for body text and a decorative script face for H1, H2, and H3. Readers say the subheads are hard to scan. Give two likely causes tied to typeface choice, and one change that keeps the page to two families.
Show answer
Likely causes: the script face is a display design that reads poorly at the small sizes subheads use, and its letter shapes and low contrast with Georgia's x-height make H2 and H3 look uneven next to body text. Keep the script for the H1 only if it has a clear job. Set H2 and H3 in a clean sans serif or in Georgia semibold, with a clear size step from the body. That gives two families and keeps the subheads easy to scan.
Exercise
You load a serif in regular, italic, bold, and bold italic, and a sans in regular and bold. Your CSS only uses the serif's regular and italic and the sans's bold. How many font files can you drop, assuming one file per style?
Show answer
Three. Drop the serif's bold and bold italic and the sans's regular, leaving the serif regular, serif italic, and sans bold. Six files become three.