Sub topic 14
Common Pitfalls and Exceptions
This chapter assumes you know the basic vocabulary (typeface, glyph, baseline, point size) and have used either a design tool such as Figma, Illustrator, or InDesign, or basic CSS. It also assumes you have read the earlier chapters on sidebearings, kerning, tracking, and the CSS properties. Here we collect the mistakes that appear most often in practice, explain why each one happens, and show how to fix it.
Pitfall 1: Tracking out lowercase body text
Adding positive tracking to lowercase running text is the most common mistake in this area. Readers recognize lowercase words partly by their overall shape, and that shape depends on the even, tight rhythm the type designer built in. Opening up every pair breaks the word into separate letters and slows reading.
Small adjustments are fine. Tiny text on a low-resolution screen can benefit from a little extra space. But a value like 0.05em on a paragraph is rarely justified.
Compare the exceptions:
| Text type | Typical adjustment | Reason |
|---|---|---|
| Body text, lowercase | 0 (leave default) | The font's spacing is already tuned for it |
| Large headlines | Slightly negative, such as -0.02em | Default spacing looks loose at large sizes |
| Small all-caps labels | Positive, such as 0.08em to 0.12em | Capitals have no designed room for each other |
| Very small text | Slightly positive, if at all | Helps legibility at tiny sizes |
p {
letter-spacing: 0;
}
.eyebrow {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.12em;
}Pitfall 2: Confusing kerning with tracking
Kerning changes the space between one specific pair. Tracking changes the space between every pair in a run by the same amount. When a single pair looks wrong, such as a gap in "AV" or a crowded "r" and "n", tracking the whole line only moves the problem to other pairs. Fix a single pair by kerning it. Fix overall density by tracking.
A quick test: if the problem is in one place, kern. If the whole line feels too tight or too loose, track.
Pitfall 3: Tracking after kerning, or kerning after tracking
The two adjustments add together, so the order of your work matters. If you hand-kern a headline and then change the tracking by a large amount, the pairs you fixed may no longer look balanced. A better workflow:
- Choose the font size and the case.
- Set the tracking for the line.
- Kern the individual pairs that still look wrong.
Tracking first, kerning last, means your pair fixes are made against the final overall density.
Pitfall 4: Kerning set in the wrong units
Tracking and kerning values in design tools are usually thousandths of an em. A value of 75 means 0.075em. A frequent error is typing the tool's number straight into CSS as pixels, or forgetting to divide by 1000.
function trackingToEm(units) {
return units / 1000;
}
console.log(trackingToEm(75) + 'em'); // "0.075em"
console.log(trackingToEm(-20) + 'em'); // "-0.02em"Use em rather than px in CSS so the spacing scales with the font size. A value of -2px that looks right on a 48px headline would be far too tight on a 16px subhead. A value of -0.02em stays proportionate at both sizes.
Pitfall 5: Turning kerning off by accident
Most browsers apply kerning by default for text, but some behaviors depend on the font and the rendering engine. Setting text-rendering: optimizeSpeed can disable kerning and ligatures in some browsers. Setting font-kerning: none removes the font's pair adjustments entirely.
body {
font-kerning: normal;
}
.kerning-off {
font-kerning: none;
}Use font-kerning: none only for comparison or for a font that has bad kerning data. If a headline looks unevenly spaced in one browser and fine in another, check these two properties first.
Pitfall 6: Ignoring the ligature interaction
Browsers do not apply optional ligatures when letter-spacing is non-zero. A ligature is a single glyph that replaces a sequence such as "fi". When you open up the spacing, the browser separates the characters instead. This is deliberate, because a fused glyph cannot be spaced internally.
The consequence is that body text with small tracking values may switch from ligatures to separate letters, which can change how a word looks. For tracked all-caps text this rarely matters, because capitals seldom form ligatures. Still, setting the behavior explicitly keeps results consistent across rendering engines.
.tracked-caps {
text-transform: uppercase;
letter-spacing: 0.1em;
font-variant-ligatures: none;
}Pitfall 7: Trailing space after the last letter
CSS letter-spacing adds space after each character, including the last one in a line. In centered text, this makes the text sit slightly off center, because the extra space at the end shifts the visible letters to the left. This is easy to miss with small values and obvious with large ones, such as a wide-tracked button label.
A common fix is to cancel the trailing space with a negative margin of the same size on the element:
.button-label {
text-transform: uppercase;
letter-spacing: 0.15em;
margin-right: -0.15em;
text-align: center;
}Check the result by eye, and in a browser that matches your users, because rendering of the final space varies.
Pitfall 8: Judging spacing from the wrong view
Spacing should be judged at the size and in the context where readers will see it. Zooming in on a single pair can lead you to over-correct, because the eye at that scale sees a gap that disappears in a full line. Zoom out, view the real line at real size, and squint or blur the text to check for an even tone.
Useful checks:
- Look at the overall color of the text block. Dark patches mean tight spots, and light patches mean loose ones.
- Test with problem pairs such as "AV", "To", "r.", and "LT".
- Read a real sentence, not just placeholder letters.
- Compare against the same text with no adjustment.
Pitfall 9: Applying one value to every size
A tracking value that works at one size usually fails at another. Letter spacing in a font is designed for a typical text size. At large display sizes, the same sidebearings produce gaps that look wide, so headlines often need negative tracking. At very small sizes, the letters can crowd together, so a small positive value may help.
Do not set one global letter-spacing on body and expect it to suit headings, captions, and buttons. Set the base value to zero, then adjust specific classes by role.
Pitfall 10: Word spacing mistaken for tracking
Tracking in CSS also changes the apparent space between words, because the space character receives the extra spacing too. If you track out a line and the words look too far apart, or too close, the word gaps may need their own adjustment with word-spacing. Do not use letter-spacing alone to correct a word gap problem, and do not use word-spacing to correct letter gaps.
.wide-title {
letter-spacing: 0.08em;
word-spacing: -0.05em;
}Pitfall 11: Relying on automatic methods without checking
Design tools offer metrics kerning (the font's built-in pair data) and optical kerning (spacing calculated from the glyph shapes). Each has limits.
- Metrics kerning is only as good as the font. Some free or older fonts have sparse or poor pair data.
- Optical kerning can handle mixed fonts or fonts with weak data, but it can produce unexpected results in some pairs and may not match what the browser shows.
- Optical kerning in a design tool does not carry into CSS. The browser uses the font's own kerning data, so the page can look different from the mockup.
For logos and large display text, check every pair manually. For long body text, trust the font's metrics and do not hand-kern.
Exceptions Worth Knowing
The rules in this tutorial are guidelines. Some cases reverse them:
- Some display faces are designed to be set tight or loose, and the designer may recommend a tracking value.
- Monospaced fonts have fixed advance widths, so kerning does nothing for them and tracking changes only the gaps.
- Some scripts, such as Arabic, connect letters, so tracking can break the joins. Avoid letter-spacing on connected scripts.
- Very light or very bold weights may need different tracking from the regular weight.
- Variable fonts can change spacing as an axis changes, so recheck after changing weight or width.
Summary Checklist
- Leave lowercase body text at default tracking.
- Kern single pairs and track whole runs.
- Track first, kern last.
- Convert design-tool units by dividing by 1000, and use em in CSS.
- Confirm kerning is on in the browser.
- Set ligatures deliberately when tracking.
- Correct the trailing space in centered tracked text.
- Judge at real size, in context.
- Adjust by size and role, not globally.
- Handle word gaps separately.
Exercise
A designer's mockup shows a 64px headline with tracking of -25 in the design tool. A developer writes letter-spacing: -25px; in CSS. Name two things that are wrong, and give the correct CSS value.
Show answer
The unit is wrong, and the value is not scaled. Tracking in design tools is in thousandths of an em, so -25 means -0.025em, not -25px. A fixed pixel value also does not scale if the font size changes, and -25px on a 64px headline is far tighter than intended (about -0.39em). The correct CSS is letter-spacing: -0.025em;.
Exercise
A centered, all-caps button label with letter-spacing: 0.2em looks slightly shifted to the left inside its button. Why, and how can you fix it?
Show answer
CSS adds letter-spacing after every character, including the last one, so extra space sits at the end of the text and pushes the visible letters off center. Cancel it with a negative margin on the right side of the same size, for example margin-right: -0.2em;, then check the result by eye.
Exercise
You add letter-spacing: 0.02em to a paragraph and notice that "fi" and "fl" in the text no longer appear as ligatures. Is this a bug? What would you do if you wanted to control it?
Show answer
It is not a bug. Browsers do not apply optional ligatures when letter-spacing is non-zero. If you want consistent results, set font-variant-ligatures explicitly. In most cases, the better choice for body text is to remove the tracking and leave it at 0, which also avoids the common pitfall of tracking out lowercase text.