The fontSizeAdjust property sets or returns the font aspect value of a text.
All fonts have an aspect value which is the size-difference between the lowercase letter "x" and the uppercase letter "X".
The fontSizeAdjust property gives you better control of the font size when the first-choice font is not available. When a font is not available, the browser uses the second specified font. This could result in a big change for the font size. To prevent this, use this property.
When the browser knows the aspect value for the first choice-font, the browser can figure out what font-size to use when displaying text with the second-choice font.
Set the fontSizeAdjust property:
Return the fontSizeAdjust property:
|none||Do not preserve x-height of first-choice font. This is default|
|value||Preserve the first-choice font's x-height, and calculate the aspect value ratio for the font.
The formula that is used: font-size of first-choice font*(aspect value of first-choice font/aspect value of available font)=font-size to use on available font
Example: If 14px Verdana (aspect value of 0.58) was unavailable, but the available font, Times New Roman, has an aspect value of 0.46, the adjusted font-size to use would be 14*(0.58/0.46) = 17.65px.
|inherit||The value of the fontSizeAdjust property is inherited from parent element|
The fontSizeAdjust property is only supported in Firefox.
Adjust font size:
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.