CSS FONT-SIZE-ADJUST
Specifies an aspect value for an element that will preserve the x-height of the first-choice font. If the aspect value is high, the font will be legible when it is set to a smaller size.
Example
h2 {
font-size-adjust: 0.58
}
Possible Values
none: Do not preserve the font’s x-height if the font is unavailable
number: Defines the aspect value ratio for the font
The formula to use: font-size of first-choice font*(font-size-adjust/aspect value of available font) = font-size to apply to available font
Example: If 14px Verdana (aspect value of 0.58) was unavailable, but an available font had an aspect value of 0.46, the font-size of the substitute would be 14 * (0.58/0.46) = 17.65px
4 Responses
can this font size adjust is visible in all type of browser
I would also like to know browser support for this?
Anyone?
Thanks
As of Aug-19-2010, Firefox is the only browser that supports font-size-adjust. https://developer.mozilla.org/en/CSS/font-size-adjust
[…] Worked example of calculation on CSS3.com […]