Sub topic 12
How letter spacing interacts with ligatures
This chapter assumes you know what a glyph is, how sidebearings and kerning pairs set default spacing, and how to write basic CSS. It covers one narrow interaction: what happens to ligatures when you change tracking.
What a ligature is
A ligature is a single glyph that replaces a sequence of letters. The common ones in Latin text are "fi", "fl", "ff", "ffi", and "ffl". Without a ligature, the hook of the "f" can collide with the dot of the "i". The ligature glyph is drawn so the shapes join cleanly.
A font stores ligatures as substitution rules in OpenType features. The standard set is the liga feature, which is on by default in most software. Decorative sets such as dlig are off by default.
Kerning and ligatures are separate mechanisms. Kerning adjusts the space between two glyphs. A ligature removes the boundary by merging the glyphs into one. Once "fi" is a single glyph, there is no pair left to kern.
Why tracking breaks ligatures
A ligature only makes sense when its letters sit at their designed distance. Positive or negative tracking changes that distance, so a fused glyph would no longer match the spacing you asked for. The CSS specification therefore says that when letter-spacing is non-zero, user agents should not apply optional ligatures. Browsers follow this for the common ligatures.
.normal {
letter-spacing: 0; /* "fi" may render as one ligature glyph */
}
.tracked {
letter-spacing: 0.05em; /* optional ligatures are not applied */
}This is usually the right outcome. Letters spaced apart with a ligature in the middle look uneven, because one pair stays locked together while the rest open up.
The effect is easy to miss with small values. A tracking of 0.01em still counts as non-zero, so a tiny adjustment to body text can switch off ligatures across the whole paragraph. The text looks nearly identical, but "fi" and "fl" now render as separate letters.
Making the behavior explicit
Because engines can differ in details, state your intent. For tracked all-caps text, turn ligatures off so every browser produces the same result.
.tracked-caps {
text-transform: uppercase;
letter-spacing: 0.1em;
font-variant-ligatures: none;
}Capital letters rarely have standard ligatures anyway, so this rule is mostly a safeguard. It matters more if you later apply the same class to mixed-case text.
For lowercase text where you want to compare, the property accepts named values:
| Value | Effect |
|---|---|
| `normal` | Default. Common ligatures follow the font and the letter-spacing rule. |
| `none` | Disables all ligatures. |
| `common-ligatures` | Requests `liga` and related features. |
| `no-common-ligatures` | Disables only the common set. |
| `discretionary-ligatures` | Requests decorative sets such as `dlig`. |
Design tools
Design applications behave differently from browsers. InDesign and Illustrator generally keep ligatures when you track text unless you disable them, though some tools break them at larger tracking values. Check your tool's character panel. If a layout moves from a design file to CSS, the ligatures in the design may disappear in the browser. This is a frequent source of "why does my web text look different" questions.
Practical guidance
- Leave body text at zero tracking when you want ligatures, and use size and line length to control density instead.
- Track all-caps labels freely. Ligatures are not a concern there.
- If you must track lowercase text, expect separate letters, and check that no pair such as "f" followed by "i" now collides.
- Compare the result by eye with
font-variant-ligatures: noneset on both samples, so you judge the spacing and not the glyph substitution.
Exercise
A paragraph uses letter-spacing: 0.01em. The designer's mockup showed an "fi" ligature, but the browser shows separate "f" and "i" glyphs. Why, and what are two ways to resolve the mismatch?
Show answer
Any non-zero letter-spacing makes browsers skip optional ligatures, even a tiny value like 0.01em. Either set letter-spacing to 0 for that text so the ligature returns, or keep the tracking and disable ligatures in the mockup so the design matches the browser.