font-kerning
Example
h1 {
font-feature-settings: "kern" 1;
}h1 {
font-kerning: normal;
}font-kerning sets kerning alone without replacing other OpenType features on the element.
Common mistakes
- Turning on kerning with raw feature tags and losing other font features.
Key points
- Kerning uses
font-kerning, notfont-feature-settings: "kern". - 'none' is used only where fixed spacing is needed, not on body text.
Interview questions
Is font kerning on by default?
The default 'auto' lets the browser decide, and it may skip kerning for small text. 'normal' asks for it always.
What is the difference between kerning and letter-spacing?
Kerning adjusts specific letter pairs using data in the font. letter-spacing adds the same space between all characters.