{"id":322037,"date":"2020-09-25T11:22:49","date_gmt":"2020-09-25T18:22:49","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=322037"},"modified":"2020-10-01T11:45:03","modified_gmt":"2020-10-01T18:45:03","slug":"font-kerning","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/f\/font-kerning\/","title":{"rendered":"font-kerning"},"content":{"rendered":"\n

The CSS font-kerning<\/code> property defines the way specific pairs of letters are spaced. <\/p>\n\n\n\n

You see, fonts often contain information about how much breathing room a character has on its left and right edges. <\/p>\n\n\n\n

\"\"
The proper term for the spacing is sidebearings<\/em>.<\/figcaption><\/figure>\n\n\n\n

When two characters are placed next to each other, their sidebearings add up to form the actual space between characters.<\/p>\n\n\n\n

\"\"
The right sidebearing of A and the left sidebearing of V define the space between them.<\/figcaption><\/figure>\n\n\n\n

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

Syntax<\/h3>\n\n\n
font-kerning: auto | normal | none<\/code><\/pre>\n\n\n\n
  • Initial value:<\/strong> auto<\/code><\/li>
  • Applies to:<\/strong> all elements<\/li>
  • Inherited:<\/strong><\/li>
  • Computed value:<\/strong><\/li>
  • Animation type:<\/strong> discrete<\/li><\/ul>\n\n\n

    Values<\/h3>\n\n\n

    font-kerning<\/code> accepts the following values:<\/p>\n\n\n\n

    • auto<\/code>: This lets the browser decide whether or not to use font kerning.<\/li>
    • normal<\/code>: Allows the kerning stored in the font to be used.<\/li>
    • none<\/code>: Disables kerning.<\/li><\/ul>\n\n\n

      Demo<\/h3>\n\n\n