Sub topic 4
Metrics, optical, and manual kerning
This chapter assumes you know what a glyph, sidebearing, and kerning pair are, and that you have used a design tool such as Figma, Illustrator, or InDesign, or written basic CSS. Here you will learn the three ways kerning gets applied and how to choose among them.
Three sources of kerning
Kerning comes from one of three places. The difference is who decided the adjustment and when.
- Metrics kerning uses the pair values stored inside the font. The type designer set them while building the font.
- Optical kerning is calculated by the software from the glyph shapes each time the text is laid out. It ignores the font's stored pairs.
- Manual kerning is an adjustment you make by hand between two specific letters. It is added on top of whichever automatic method is active.
Metrics kerning
Metrics kerning reads the font's kerning data, the pair tables covered in the previous chapter. A well-made font has thousands of pairs tuned by its designer, so metrics kerning is usually the best starting point. It is also the default in most tools and in browsers.
Its weakness is the font itself. A free or older font may have few pairs, wrong values, or none at all. Metrics kerning also only knows the pairs the designer listed. It cannot handle a mix of two typefaces on one line, because the data in one font says nothing about the glyphs of the other.
Optical kerning
Optical kerning looks at the outlines of neighboring glyphs and tries to equalize the visual space between them, not the measured space. For example, it considers that the gap above the arm of a T counts as open space for the letter next to it.
It helps when metrics kerning is poor or missing, and when you set two fonts or two sizes side by side. It can also be less predictable. Results may differ between applications, and it can undo careful choices the type designer made. In InDesign, the choices are named Metrics and Optical. Illustrator offers the same two. Web browsers apply only the font's own kerning data, so there is no built-in optical option in CSS.
Manual kerning
Manual kerning means placing the cursor between two letters and entering a value, usually in thousandths of an em. A negative value pulls the pair closer. A positive value pushes it apart.
Manual kerning pays off in large, prominent text such as logos, headlines, posters, and titles. At those sizes the eye sees every uneven gap. In body text it is rarely worth the effort, and it does not follow the text if the wording changes.
In CSS you can only apply manual kerning by wrapping the pair in an element and giving it a margin or a small negative letter-spacing. Keep this for fixed display text.
.logo .pair-av {
letter-spacing: -0.04em;
}The value applies to the space after the letters inside that element. Wrap only the first letter of the pair if you want to change just the gap between them.
Choosing a method
| Situation | Best choice |
|---|---|
| Body text in a quality font | Metrics |
| Font with few or poor kerning pairs | Optical |
| Two typefaces or sizes in one line | Optical |
| Logo, headline, or poster | Metrics or optical, then manual fixes |
| Text that changes often (web content) | Metrics, with little or no manual work |
Common errors
- Switching on optical kerning for all text and losing a good font's tuned pairs.
- Manually kerning text before choosing the automatic method. Changing the method afterward shifts every pair and breaks your manual work.
- Stacking manual kerning on top of tracking and then not knowing which one to change. Set tracking first, then kern individual pairs.
- Fixing a gap by hand in editable text, when the gap should have been fixed once in the font or template.
Exercise
You are setting a logo that uses the word "AVATAR" in a font with a small set of kerning pairs. Which approach would you use, and in what order?
Show answer
Start with optical kerning, because the font has few pairs. Set tracking next, if the whole word needs to be looser or tighter. Then fix the remaining uneven pairs, such as A-V and V-A, by hand with small negative values. The order matters because changing the automatic method or tracking later would shift every pair and undo the manual work.