Sub topic 5
Tracking: Adjusting Space Across a Whole Run of Text
This chapter assumes you know what a glyph, a sidebearing, and a kerning pair are, and that you have used either a design tool such as Figma, Illustrator, or InDesign, or basic CSS. It covers tracking: what it changes, how it differs from kerning, and where it helps or hurts.
What tracking is
Tracking is a uniform change to the space between all letters in a selected run of text. A run can be a word, a line, a paragraph, or a whole style. Positive tracking opens the text up. Negative tracking tightens it. Zero tracking leaves the font's default spacing, which is its sidebearings plus its kerning data.
Tracking does not look at letter pairs. It adds or removes the same amount after every glyph. A tracked pair such as "AV" keeps the font's kerning, and the tracking amount is added on top of it.
Design tools usually call this setting tracking. Some tools call it letter spacing. CSS calls it letter-spacing.
Why use it
Tracking is a tool for adjusting the overall texture of text, which designers call color: how dense or light a block looks from a distance. Common uses:
- Opening up small text so letters do not crowd each other at tiny sizes.
- Opening up all-caps labels, because capitals have no ascenders or descenders to separate lines and are spaced for mixed-case text.
- Tightening large display text, where default spacing looks loose at big sizes.
- Fitting a line of text to a width, in small amounts.
Tracking in a design tool
Design tools express tracking in thousandths of an em. An em is the font size, so a tracking value of 75 on 20 px text adds 75/1000 × 20 px = 1.5 px after each glyph. Because the value is relative to font size, the same tracking looks the same at any size.
| Tracking value | Effect | Typical use |
|---|---|---|
| -20 | Slightly tighter | Large headlines |
| 0 | Font default | Body text |
| 25 | Slightly looser | Small text |
| 100 | Clearly open | Small all-caps labels |
Tracking in CSS
The CSS property is letter-spacing. Use em so the value scales with the font size, just as design-tool tracking does.
.headline {
font-size: 4rem;
letter-spacing: -0.02em;
}
.eyebrow {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.12em;
}The headline is tightened by 2% of its size. The label is opened by 12% of its size. To convert a design-tool value, divide by 1000:
function trackingToEm(units) {
return units / 1000;
}
console.log(trackingToEm(75) + 'em'); // "0.075em"
console.log(trackingToEm(-20) + 'em'); // "-0.02em"Common errors
- Tracking out lowercase body text. Lowercase words are recognized by their overall shape. Wide, even gaps break that shape and slow reading. Leave body text at or near zero.
- Fixing one bad pair with tracking. If only "To" or "AV" looks wrong, tracking changes every pair and moves the problem elsewhere. Use kerning for single pairs.
- Forgetting the trailing space. CSS adds
letter-spacingafter every character, including the last one. A tracked, centered label can look slightly off-center to the left because of that extra space after the final letter. - Tracking without a reason. Large tracking changes on text you have not looked at carefully often make it worse. Make small changes and check them by eye.
Exercise
A label is set at 14 px with tracking of 80 in a design tool. What letter-spacing value should you use in CSS, and how many pixels does it add after each glyph?
Show answer
Divide by 1000 to get letter-spacing: 0.08em. At 14 px that adds 0.08 × 14 = 1.12 px after each glyph.
Exercise
In a headline, only the pair "Ty" looks too far apart, and the rest of the line looks fine. Should you change tracking or kerning, and why?
Show answer
Change kerning. Kerning adjusts one specific pair. Tracking would change the space between every pair in the line, including the ones that already look right.