font-kerning

Term side of the Card.
Topic: Font Features
Unit title: font-kerning
Categories: Property
Explanation side of the Card

Explanation: The property that controls the use of kerning information in a font. Kerning adjusts the spacing between specific pairs of characters to improve the overall appearance and readability of text. The property can enable or disable this automatic adjustment.

Browser compatibility:
  • The chrome browser supports this feature starting from version 33.
  • The edge browser supports this feature starting from version 79.
  • The firefox browser supports this feature starting from version 32.
  • The safari browser supports this feature starting from version 9.
Availability: 

Example

Wrongcss
h1 {
  font-feature-settings: "kern" 1;
}
Rightcss
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, not font-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.

Analytics cookiesWe'd like to use analytics cookies to see which pages are useful. They're set only if you accept. Privacy Policy