Style fontSizeAdjust Property
Style fontSizeAdjust Property
The fontSizeAdjust property is used to either set or return the font aspect value of a text. It is basically the size difference between the lowercase letter "x" and the uppercase letter "X". It gives better control of font size when the font is unavailable. If the browser knows the aspect value for the first-choice font then the browser can figure out what font size to use when displaying text with the second-choice font.
Syntax:-
Its syntax is:- object.style.fontSizeAdjust OR object.style.fontSizeAdjust = none | number | initial | inherit
Return:-
Its return is:- string having font aspect value of a text
Further Explanation:-
Value | Description |
---|---|
none | No font size adjustment. |
number | Preserve the first-choice font x-height, and calculate the aspect value ratio for the font. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |