How to use font-variant-settings property in CSS ?
The font-variant-settings property allow users to get good low-level control over the fonts with variable characteristics. Users may specify the font letter axis name of the character whose value is to be varied.
There are two forms to specify this property, one of which is normal, and the second is string number. When the normal property is applied, the text will be laid out by the default settings. This property is a low-level mechanism that is designed such that users may set variable font features.
Syntax: The syntax for the font-variation-settings property is shown below.
font-variant-settings: normal | small-caps | initial | inherit;
- Default_Value: To use the default settings, the value used is “normal”.
- Global_Values: The global values are defined as “inherit”, “initial”, “revert” and “unset”.
Example 1: Below is the example of font-variant-settings using value “normal”.
Example 2: Below is the example of font-variant-settings using value “small-caps”.
- Internet Explorer