Difference between revisions of "CSS GUIDE FONT-SIZE-ADJUST"

From CDOT Wiki
Jump to: navigation, search
m
m (Reverted edits by MCanaday49 (Talk) to last revision by Mdsouza)
 
Line 1: Line 1:
 
== Summary ==
 
== Summary ==
  
A factor contributing to the legibility of fonts at different sizes is the relationship between &lt;span class=&quot;plainlinks&quot;&gt;[http://www.thepiggybackrider.com/ &lt;span style=&quot;color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;/*CITATION*/&quot;&gt;child carrier&lt;/span&gt;]&lt;/span&gt; <span class="plainlinks">[http://www.thepiggybackrider.com/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;/*CITATION*/">kid carrier</span>]</span> the height of the 'font-size' and the height of the font's x-height (the height of its lowercase letter 'x'.) The ratio between these two factors ('font-size' divided by x-height) is called a font's &amp;quot;aspect value.&amp;quot; If an aspect value ratio is large for a font, it is more likely to be legible at a given font-size than a font with a smaller aspect value.
+
A factor contributing to the legibility of fonts at different sizes is the relationship between the height of the 'font-size' and the height of the font's x-height (the height of its lowercase letter 'x'.) The ratio between these two factors ('font-size' divided by x-height) is called a font's "aspect value." If an aspect value ratio is large for a font, it is more likely to be legible at a given font-size than a font with a smaller aspect value.
  
The '''font-size-adjust''' property allows authors to specify the &amp;quot;aspect value&amp;quot; that they wish to maintain. It becomes helpful when a specified font is unavailable and the system needs hints to determine the most suitable substitute.
+
The '''font-size-adjust''' property allows authors to specify the "aspect value" that they wish to maintain. It becomes helpful when a specified font is unavailable and the system needs hints to determine the most suitable substitute.
  
 
== Syntax ==
 
== Syntax ==
  
&amp;lt;pre&amp;gt;
+
<pre>
 
h5.med  { font-size-adjust: number | none }
 
h5.med  { font-size-adjust: number | none }
&amp;lt;/pre&amp;gt;
+
</pre>
  
 
== Legal Values ==
 
== Legal Values ==
Line 27: Line 27:
 
== Usage Examples ==
 
== Usage Examples ==
  
&amp;lt;pre&amp;gt;
+
<pre>
 
Ext/Doc: h5.med  { font-size-adjust: 0.58 }
 
Ext/Doc: h5.med  { font-size-adjust: 0.58 }
In-Line:  &amp;lt;h5 STYLE=&amp;quot;font-size-adjust: 0.58&amp;quot;&amp;gt;text&amp;lt;/h5&amp;gt;
+
In-Line:  <h5 STYLE="font-size-adjust: 0.58">text</h5>
&amp;lt;/pre&amp;gt;
+
</pre>
  
 
== Notes ==
 
== Notes ==

Latest revision as of 13:10, 17 April 2013

Summary

A factor contributing to the legibility of fonts at different sizes is the relationship between the height of the 'font-size' and the height of the font's x-height (the height of its lowercase letter 'x'.) The ratio between these two factors ('font-size' divided by x-height) is called a font's "aspect value." If an aspect value ratio is large for a font, it is more likely to be legible at a given font-size than a font with a smaller aspect value.

The font-size-adjust property allows authors to specify the "aspect value" that they wish to maintain. It becomes helpful when a specified font is unavailable and the system needs hints to determine the most suitable substitute.

Syntax

h5.med  { font-size-adjust: number | none }

Legal Values

inherit

  • Explicitly sets the value of this property to that of the parent.

none

  • Do not preserve the current specified font's x-height if the font is not available.

number

  • Specifies the Aspect Value ratio for the font. The formula for determining the appropriate font size for an available font is:
 ['font-size']*(['font-size-adjust']/[aspect value of available font]) = [font size to use]

Mozilla Recommended Values

Usage Examples

Ext/Doc: h5.med  { font-size-adjust: 0.58 }
In-Line:  <h5 STYLE="font-size-adjust: 0.58">text</h5>

Notes

  • Child elements inherit 'un-adjusted' font-size values.
  • The CSS2 spec states that a 'font-size-adjust' number value indicates the aspect value of the first-choice font. No mention is made of what should happen if the actual aspect value of the indicated font conflicts with the given aspect value.

Specification Conformance

Browser Compatibility

See Also