---
title: "Kerning vs Tracking: What Is the Difference? - CE.SDK Glossary"
description: "Kerning sets the space between one pair of letters and tracking sets it across a whole word or line. Space a word by hand in the tool and convert tracking units."
url: "https://img.ly/glossary/kerning-vs-tracking/"
type: "page"
---

> This is the markdown version of [Kerning vs Tracking: What Is the Difference? - CE.SDK Glossary](https://img.ly/glossary/kerning-vs-tracking/). For all pages in one file, see [llms-full.txt](https://img.ly/llms-full.txt). For an index of all available pages, see [llms.txt](https://img.ly/llms.txt).

---

# 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](https://img.ly/glossary/leading-typography.md).

### 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.

The tool sets a word (WAVE, Typography, AVATAR or your own) in Inter or GT Walsheim Pro and measures the font's kerning for every letter pair. You can turn that kerning on or off, set the tracking from -100 to +300 thousandths of an em, and tighten or loosen one pair at a time. It converts the tracking to CSS letter-spacing and CE.SDK Letter Spacing, and gives the setTextKerning call for an adjusted pair.

## 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.

- **Photoshop, Illustrator, InDesign**: Unit: 1/1000 em, Tracking of 50: 50

- **CSS letter-spacing**: Unit: Any CSS length, such as em, Tracking of 50: 0.05em

- **SwiftUI tracking**: Unit: Points, Tracking of 50: 2.4 at a 48 pt size

- **CE.SDK Letter Spacing**: Unit: Fraction of the font size, Tracking of 50: 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](https://img.ly/products/creative-sdk.md) 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**

```javascript
// 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](https://img.ly/docs/cesdk/js/text/adjust-spacing-c1a3b6.md)

## FAQs

### Kerning vs Tracking

**Q: What is the difference between kerning, tracking and leading?**

A: 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.

**Q: Is letter spacing the same as tracking?**

A: 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.

**Q: What is the difference between metric and optical kerning?**

A: 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.

**Q: Do all fonts have kerning?**

A: 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.

**Q: Is kerning applied automatically?**

A: 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.

## Links

- [Creative Editor SDK](https://img.ly/products/creative-sdk.md): Each font's own kerning applies by default, and Letter Spacing in the web editor sets the spacing across a whole text block.
- [Text Spacing Guide](https://img.ly/docs/cesdk/js/text/adjust-spacing-c1a3b6.md): Set letter spacing, line height and paragraph spacing on a text block in code.
- [Text Styling](https://img.ly/docs/cesdk/js/text/styling-269c48.md): Change the typeface, weight, color and case of a text block or of selected characters.

---

## More Resources

- **[IMG.LY Website](https://img.ly/index.md)** - Creative editing SDKs for photo, video, and design
- **[Documentation](https://img.ly/docs/cesdk/)** - CE.SDK developer documentation
- **[Build with a coding agent](https://img.ly/SKILL.md)** - A skill that adds a CE.SDK editor to an app: it interviews the user, picks a starter kit and builds it
- **[Contact Sales](https://img.ly/forms/contact-sales.md)** - Get a custom quote. A public JSON API accepts the request directly, no account or key needed. Ask your user for consent and their details first.
- **[Free Trial](https://img.ly/pricing.md)** - Start building with CE.SDK
