HTML and CSS Reference
In-Depth Information
The font-size-adjust property lets you readjust the substituted font's
aspect ratio so that it better fits the display. Use the property value of
none to ignore the aspect ratio. Otherwise, include your desired aspect
ratio (a decimal value less than one), typically the aspect ratio for your
first-choice display font. The styles-conscious browser computes and
displays the substituted font at a size adjusted to your specified aspect
ratio:
s = (n/a) * fs
where s is the new, computer font size for display of the substituted
font, calculated as the font-size-adjust value n divided by the substitu-
ted font's aspect ratio a times the current font size fs .
For example, let's imagine that your first-choice font is Times New Ro-
man, which has an aspect ratio of 0.45. If it's not available, the browser
may then substitute Comic Sans MS, which has an aspect ratio of 0.54.
So that the substitution maintains nearly equivalent sizing for the font
displaysay, at an 18-px font sizewith the font-size-adjust property set
to 0.45, the CSS2-compliant browser would display or print the text with
the substituted Comic Sans MS font at the smaller size of (0.45/0.54 x
18 px) = 15 px.
Unfortunately, we can't show you how the popular browsers would do
this because they don't support it.
8.4.3.5. The font-style property
Use the font-style property to slant text. The default style is normal and
may be changed to italic or oblique . For example:
h2 {font-style: italic}
 
Search WWH ::




Custom Search