htmlcss

The font-size-adjust property is used in CSS and certain HTML elements. It specifies what font size should be chosen based on the height of lowercase letters rather than the height of capital letters.

This is useful since the legibility of fonts, especially at small sizes, is usually determined by the size of lowercase letters rather than by the size of capital letters. This can cause problems when the first-choice font-family is unavailable and its replacement has a significantly different aspect ratio (the ratio of the size of lowercase letters to the size of the font).

To do this in a way that is compatible with browsers that do not support font-size-adjust, it is specified as a number that the font-size property is multiplied by. This means the value specified for the property should generally be the aspect ratio of the first choice font. For example, a style sheet that specifies

font-size: 16px;  font-size-adjust: 0.5;

is really specifying that the lowercase letters of the font should be 8px high (0.5 × 16px).


Values


HTML example:

<span style="font-family:Arial; font-size:20pt; font-size-adjust:0.5;">QWERTYUIOP</span>


CSS example:

h1 {
    font-family:Arial;
    font-size:20pt;
    font-size-adjust:0.5;
}