Back to Glossary
Design & Typography

Kerning vs Tracking

What Is the Difference Between Kerning and Tracking?

Kerning changes the space between one specific pair of letters, and tracking adds or removes the same amount of space throughout a selection, from one word to a whole paragraph. Fonts store kerning values for awkward pairs such as A and V, so apps apply them automatically, while tracking stays at zero until you change it. Both change the space along a line of text, while the distance from one line to the next is called leading.

Space a word by hand

Pick a word and a font, turn the font’s kerning on or off, then change the tracking or tighten one pair at a time.

Which Letter Pairs Need Kerning?

Pairs whose shapes leave a wedge of empty space between them need kerning most, such as two diagonal capitals or a capital T before a lowercase o. Most kerning tightens a pair rather than opening it, by anything from a few to more than a hundred thousandths of an em, and the values for the same pair differ from font to font.

Diagonal capitals such as AV and WA

The slanted strokes of A, V, W and Y lean away from each other, so at default spacing an AV or a WA leaves a visible hole in a word set in capitals.

A capital T or Y before lowercase letters

The bar of a T and the arms of a Y leave open space below them, so fonts pull lowercase letters such as o and a in underneath, as in To and Yo.

A period after a capital T, F or P

A period or comma after one of these letters falls into the open space below its top stroke, so fonts kern it closer and the punctuation stays attached to its word.

How Is Tracking Measured?

Adobe’s design apps measure tracking in thousandths of an em, where an em equals the font size, so a tracking of 50 adds a twentieth of the font size between letters at any size. In CSS you can write it in ems, CE.SDK takes the same number as a fraction of the font size and SwiftUI needs points, so the setting has to be converted when a design moves from a design app into code.

The unit each tool uses for tracking, and what a tracking of 50 becomes
  Unit Tracking of 50
Photoshop, Illustrator, InDesign 1/1000 em 50
CSS letter-spacing Any CSS length, such as em 0.05em
SwiftUI tracking Points 2.4 at a 48 pt size
CE.SDK Letter Spacing Fraction of the font size 0.05

A value in ems scales with the text, so a Letter Spacing of 0.05 stays right when your users resize a headline. A SwiftUI value in points is fixed, so text at half the size needs half the points for the same look.

How Much Tracking Should Text Get?

It depends on the size and case of the text: capitals need more room, large headlines can take a little less, and long passages of body text read best at the font’s own spacing.

  • Add space to all caps. A word set entirely in capitals looks cramped at zero tracking, and some extra space between the letters makes it easier to read.
  • Tighten large headlines slightly. A little negative tracking makes a big headline look compact and hold together as one shape.
  • Leave body text at zero. The type designer already set the space around each letter, and loose spacing across long paragraphs makes them slower to read.
  • Expect ligatures to drop out. Browsers and SwiftUI switch off optional ligatures such as fi once tracking is anything but zero, so those letters render as separate glyphs.

Kerning or Tracking: Which Should You Use?

Use kerning when a single pair sits too close or too far apart, and tracking when all of a headline or paragraph looks too dense or too loose. A logo or a large headline often needs both, tracking for the overall density and kerning for the pairs that still stand out.

Use kerning for

  • A pair that leaves a gap in a logo or wordmark

  • Two letters in a large headline that sit too close or too far apart

  • Punctuation that drifts away from the letter before it

Use tracking for

  • Words and labels set in all capitals

  • A large headline that should look tighter as a whole

  • A paragraph or caption that looks too dense or too loose

How Kerning and Tracking Work in CE.SDK

CE.SDK applies a font’s kerning pairs to every text block by default, and one setting switches them off. In the web editor, your users set tracking with the Letter Spacing control in the advanced text options, which stores the value as a fraction of the font size, so 0.05 there matches a tracking of 50 in Adobe’s apps.

In code, you can also tighten or loosen a single pair: the engine adds an offset after a range of characters, on top of the font’s own kerning. Letter spacing and these offsets only change the gaps between letters, so the last letter of a block gets no space added after it.

Set tracking and kerning on a text block
// Tracking: Letter Spacing is a fraction of the font size,
// so 0.05 matches a tracking of 50 in Adobe's apps.
engine.block.setFloat(text, 'text/letterSpacing', 0.05);

// The font's own kerning pairs apply by default;
// false turns them off for this block.
engine.block.setBool(text, 'text/useKerning', true);

// Tighten one pair in "WAVE": the offset goes after each
// character in the range, so 1 to 2 moves the V toward the A.
engine.block.setTextKerning(text, -0.02, 1, 2);
Text spacing guide

FAQs

Kerning and tracking both set the horizontal space between letters, kerning for one pair and tracking for a whole run of text. Leading works vertically: it sets how far apart the lines of a paragraph sit, so it changes how they stack rather than how the letters sit.

Yes. Letter spacing is the name CSS, Figma and CE.SDK use for tracking: one value added between the letters of a selection, whatever the pairs are. Photoshop, Illustrator and InDesign name it tracking.

Metric kerning applies the pair values stored in the font file. Optical kerning ignores them and works out each gap from the outlines of the two letters. Manual kerning is a third option: a value you set yourself for one pair, which overrides both.

No. Monospaced fonts give every character the same width, so they don't use kerning, and a proportional font only kerns the pairs its designer added. The amount a given pair moves also changes between fonts.

Usually, yes. The OpenType specification asks apps to turn a font's kerning on by default for horizontal text, and browsers follow the CSS font-kerning property, though with its auto value some skip kerning at small sizes. In CE.SDK, the font's kerning applies to every text block unless it is switched off.