font-kerning

Avatar of Geoff Graham
Geoff Graham on (Updated on )

DigitalOcean provides cloud products for every stage of your journey. Get started with $200 in free credit!

The CSS font-kerning property defines the way specific pairs of letters are spaced.

You see, fonts often contain information about how much breathing room a character has on its left and right edges.

The proper term for the spacing is sidebearings.

When two characters are placed next to each other, their sidebearings add up to form the actual space between characters.

The right sidebearing of A and the left sidebearing of V define the space between them.

Font designers will adjust the sidebearings between two specific characters so they look better together. That’s kerning and that’s what the font-kerning property lets us decide: whether we want to use the font’s kerning or disable it altogether. So, if the font you’re working with doesn’t support kerning data, then this property will have no effect on it.

Syntax

font-kerning: auto | normal | none
  • Initial value: auto
  • Applies to: All elements
  • Inherited: Yes
  • Computed value: As specified
  • Animation type: Discrete

Values

The font-kerning property accepts the following values:

  • auto: This lets the browser decide whether or not to use font kerning.
  • normal: Allows the kerning stored in the font to be used.
  • none: Disables kerning.

Demo

Browser support

This browser support data is from Caniuse, which has more detail. A number indicates that browser supports the feature at that version and up.

Desktop

ChromeFirefoxIEEdgeSafari
29*34No797*

Mobile / Tablet

Android ChromeAndroid FirefoxAndroidiOS Safari
1271274.4*8*