CSS - font-size-adjust


Description

The font-size-adjust property is used to improve the legibility of alternate font choices.

Possible Values

  • number − The aspect value of the first font listed in the value of the property font-family. This value is used in the equation fs x (fa/aa) = as, where fs is the declared value of font-size for the element, fa is the declared value of font-size-adjust, aa is the aspect value of the actual font to be used, and as is the computed font-size for the element.

  • none − No size adjustments should be made to alternate font choices.

Applies to

All the HTML elements.

DOM Syntax

object.style.fontSizeAdjust = "0.61";

Example

Here is the example using this property −

<html>
   <head>
   </head>

   <body>
      <p style = "font-size-adjust:0.61;">
         This text is using a font-size-adjust value.
      </p>
   </body>
</html> 

This will produce following result −

Advertisements