Sub topic 6
Telling kerning and tracking apart
This chapter assumes you know the basic vocabulary (glyph, sidebearing, em) and have used either a design tool or CSS. It also assumes you have seen how default spacing comes from advance widths and sidebearings. Kerning and tracking both change the space between letters, so they are easy to confuse. Using the wrong one is a common cause of text that still looks uneven after "fixing" it.
The one-sentence difference
Kerning adjusts the space between one specific pair of letters. Tracking adjusts the space between all letters in a selected run of text by the same amount.
The difference is scope. Kerning is local and depends on which two glyphs are neighbors. Tracking is global and ignores which glyphs are neighbors.
| Property | Kerning | Tracking |
|---|---|---|
| Scope | One pair of adjacent glyphs | Every gap in a run of text |
| Depends on letter shapes | Yes (A next to V differs from A next to N) | No |
| Typical source | Pair data stored in the font | A style setting chosen by the designer |
| Goal | Even rhythm between awkward shapes | Overall density of the text |
| Design tool control | Cursor placed between two letters | A range of text selected |
| CSS control | `font-kerning`, `font-feature-settings` | `letter-spacing` |
What each one fixes
Kerning fixes shape-dependent gaps
Some letter combinations leave visibly wrong gaps with default sidebearings alone. A capital A followed by V leaves a wedge of empty space, because the diagonals pull away from each other. A kerning value for that pair reduces the gap. Lowercase pairs such as "rn" can have the opposite problem and look like an "m", which kerning can also address.
The pair table in the font handles most of this automatically. You step in when the table misses a pair, when you are working at display size where small errors show, or when a logo or headline needs a hand-tuned result.
Tracking fixes overall density
Tracking changes how open or tight a whole word, line, or paragraph feels. You reach for it when the text feels uniformly too cramped or too loose for its size or purpose. Typical cases are small all-caps labels (open them up) and large headlines (tighten them slightly).
Tracking cannot repair an uneven pair. If "AV" has a hole in it, adding the same space everywhere gives you a bigger hole and bigger gaps everywhere else.
How they combine
The two are additive. Tracking does not replace kerning. The final gap between two letters is roughly:
gap = right sidebearing of first glyph
+ left sidebearing of second glyph
+ kerning value for that pair
+ tracking valueThe next script makes this concrete. The kerning numbers are made up for illustration, in thousandths of an em, like most design tools use.
const kernPairs = { AV: -80, VA: -70, AT: -90, AR: 0 };
function gapAdjustments(text, tracking) {
const rows = [];
for (let i = 0; i < text.length - 1; i++) {
const pair = text[i] + text[i + 1];
const kern = kernPairs[pair] ?? 0;
rows.push({ pair, kern, tracking, total: kern + tracking });
}
return rows;
}
console.table(gapAdjustments("AVATAR", 50));With tracking of 50, the "AV" gap changes by -30 (kerning -80 plus tracking 50), while "TA" changes by +50 because it has no pair entry. Raising tracking moves every total up by the same amount. Kerning keeps the differences between pairs.
In design tools
Tools such as InDesign, Illustrator, and Figma store both values in thousandths of an em, so a value of 100 means 0.1 em. The cursor decides which one you change.
- With the text cursor blinking between two letters, the kerning field changes the space for that pair only.
- With a range of text selected, the same kind of field changes tracking for the whole selection.
Some tools label things differently. In Figma, the "Letter spacing" field is tracking. It applies to the whole text layer or the selected range, and the font's own kerning still runs underneath it.
A manual kerning value is stored on that pair in your document. It is separate from the pair data inside the font file. Changing the font afterward can leave your manual values pointing at the wrong pairs.
In CSS
CSS gives you tracking directly and gives you only an on/off switch for the font's kerning.
.headline {
font-size: 4rem;
letter-spacing: -0.02em;
}
.eyebrow {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.12em;
}letter-spacing is tracking. A value of -0.02em matches a tracking value of -20 in a design tool. Using em units means the spacing scales with the font size of that element.
Kerning is controlled by font-kerning:
body {
font-kerning: normal;
}
.kerning-off {
font-kerning: none;
}Setting font-kerning: none turns off the font's pair kerning, which is useful for comparing the same text with and without it. CSS has no property for changing the kerning of a single pair by a chosen amount. The usual workaround is to wrap one letter in an element and give it a small letter-spacing or margin. That is fragile, so treat it as a last resort for logos and large display text.
A tool-to-CSS conversion is simple division by 1000:
function trackingToEm(units) {
return units / 1000;
}
console.log(trackingToEm(75) + 'em'); // "0.075em"
console.log(trackingToEm(-20) + 'em'); // "-0.02em"A practical diagnostic
When spacing looks off, work out the scope before touching any control.
- Squint at the text or view it small. If the whole line looks too dark or too pale, the problem is density. Adjust tracking.
- If most of the text looks fine but one or two spots have a hole or a collision, the problem is a pair. Adjust kerning for those pairs.
- If gaps between words are the issue, neither applies. Look at word spacing.
- After a change, check the result at the size where it will actually be used.
| Symptom | Likely cause | Right control |
|---|---|---|
| Gap between "T" and "o" looks bigger than other gaps | Missing or weak pair value | Kern that pair |
| Large headline feels loose throughout | Default spacing is tuned for text sizes | Negative tracking |
| Small caps label feels cramped | All caps need more air | Positive tracking |
| Letters collide after tightening a headline | Tracking pushed pairs too close | Reduce tracking, then kern the collisions |
| Word gaps look too wide after tracking | Tracking adds to space characters too | Adjust word spacing |
Common mistakes
- Fixing a pair with tracking. The pair improves, but every other gap shifts, and you create new problems elsewhere.
- Fixing density with many manual kerns. Dozens of individual pair edits are slow and break if the text changes. One tracking value does the same job.
- Assuming tracking switches kerning off. It does not. Pair kerning still applies underneath it.
- Tracking out lowercase body text. Opening up lowercase running text makes it harder to read, because it breaks up word shapes. Keep this treatment for all caps and short labels.
- Forgetting that tracking changes layout. Wider or tighter letter spacing changes line length, so lines may wrap differently.
- Ignoring trailing space in CSS. Browsers typically add
letter-spacingafter every character, including the last one on a line. A centered, widely tracked label can sit slightly off center. A negative right margin equal to the tracking value on that element corrects it.
Exercise
A designer sets a large poster headline in a font with good kerning data. The word "WAVE" looks fine overall, but the whole line feels slightly loose. A colleague suggests kerning every pair by -20. What is a better approach, and what CSS value would you use for a tracking of -20 in a design tool?
Show answer
The problem is uniform looseness across the whole run, so use tracking rather than editing each pair. Divide the design-tool value by 1000 to get the em value, so set letter-spacing: -0.02em on the headline. The font's kerning keeps working underneath, so the pair differences stay intact.
Exercise
In a design tool you select the single word "TAVERN" and set the value in the spacing field to 100. Then you place the cursor between "A" and "V" and set the field to -60. In thousandths of an em, what is the total adjustment applied to the A-V gap, ignoring the font's built-in pair value?
Show answer
The selected-range value is tracking (100), and the cursor value is a manual kerning value (-60). They add, so the A-V gap is adjusted by 100 + (-60) = 40 thousandths of an em, which is 0.04 em.