Open In App
Related Articles

CSS font-kerning Property

Improve Article
Improve
Save Article
Save
Like Article
Like

This property is used to control the usage of the Kerning Information that has been stored in the Font. Kerning defines how letters are spaced. This property will have no visible effect on those fonts that do not have kerning information.

Syntax:  

font-kerning: auto|normal|none;

Default Value: auto 

Property:  

  • auto: It is the default value. The Browser decides whether font-kerning is applied or not.
  • normal: It is used to specify that font-kerning is applied normally on the browsers.
  • none: It is used to specify that font-kerning is not applied.

Example:  In this example, we are using the above-explained method.

html




<!DOCTYPE html>
<html>
 
<head>
    <title>
        CSS | font-kerning Property
    </title>
    <style>
        div {
            font-family: serif;
            font-size: 20px;
            font-weight: bold;
        }
 
        div.geeks {
            font-kerning: normal;
        }
 
        div.SUDO {
            font-kerning: auto;
        }
 
        div.gfg {
            font-Kerning: none;
        }
 
        h1 {
            color: green;
        }
 
        body {
            text-align: center;
        }
    </style>
</head>
 
<body>
    <h1>GeeksforGeeks</h1>
    <h2>The font-kerning Property</h2>
    <h3>font-kerning:normal;</h3>
    <div class="geeks">
        GeeksforGeeks:
        A computer science portal for Geeks
    </div>
    <h3>font-kerning:auto;</h3>
    <div class="sudo">
        GeeksforGeeks:
        A computer science portal for Geeks</div>
    <h3>font-Kerning:none;</h3>
    <div class="gfg">
        GeeksforGeeks:
        A computer science portal for Geeks
    </div>
</body>
 
</html>


Output: 

Supported Browsers: The browsers supported by CSS | font-kerning Property are listed below:  

  • Google Chrome 33.0
  • Edge 79.0
  • Firefox 32.0
  • Opera 20
  • Safari 9.0

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 04 Aug, 2023
Like Article
Save Article
Previous
Next
Similar Reads
Complete Tutorials