You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -919,149 +919,175 @@ Font size: the 'font-size' property</h3>
919
919
<h3 id="font-size-adjust-prop">
920
920
Relative sizing: the 'font-size-adjust' property</h3>
921
921
922
-
<pre class="propdef">
923
-
Name: font-size-adjust
924
-
Value: none | <<number>>
925
-
Initial: none
926
-
Applies to: all elements
927
-
Inherited: yes
928
-
Percentages: N/A
929
-
Computed value: as specified
930
-
Media: visual
931
-
Animatable: as <<number>>
932
-
</pre>
933
-
934
-
For any given font size, the apparent size and legibility of text
935
-
varies across fonts. For scripts such as Latin or Cyrillic that
936
-
distinguish between upper and lowercase letters, the relative height
937
-
of lowercase letters compared to their uppercase counterparts is a
938
-
determining factor of legibility. This is commonly referred to as the
939
-
<dfn>aspect value</dfn>.
940
-
Precisely defined, it is equal to the x-height of a font divided by
941
-
the font size.
942
-
943
-
In situations where font fallback occurs, fallback fonts might not
944
-
share the same aspect value as the desired font family and will thus
945
-
appear less readable. The 'font-size-adjust' property is a way to
946
-
preserve the readability of text when font fallback occurs. It does
947
-
this by adjusting the font-size so that the x-height is the same
948
-
regardless of the font used.
949
-
950
-
<div class="example">
951
-
The style defined below defines Verdana as the desired font family, but if Verdana is not available Futura or Times
952
-
will be used.
953
-
954
-
<pre>
955
-
p {
956
-
font-family: Verdana, Futura, Times;
957
-
}
958
-
959
-
<p>Lorem ipsum dolor sit amet, ...</p>
922
+
<pre class="propdef">
923
+
Name: font-size-adjust
924
+
Value: none | <<number>>
925
+
Initial: none
926
+
Applies to: all elements
927
+
Inherited: yes
928
+
Percentages: N/A
929
+
Computed value: as specified
930
+
Media: visual
931
+
Animatable: as <<number>>
960
932
</pre>
961
933
962
-
Verdana has a relatively high aspect value, lowercase letters are relatively tall compared to uppercase
963
-
letters, so at small sizes text appears legible. Times has a lower aspect value and so if fallback occurs,
964
-
the text will be less legible at small sizes than Verdana.
965
-
</div>
934
+
For any given font size, the apparent size and effective legibility of text
935
+
varies across fonts.
936
+
For scripts such as Latin or Cyrillic that
937
+
distinguish between upper and lowercase letters,
938
+
the relative height of lowercase letters
939
+
compared to their uppercase counterparts
940
+
is a determining factor of legibility.
941
+
This is commonly referred to as the <dfn>aspect value</dfn>
942
+
and is equal to the x-height of a font
943
+
divided by the font size.
944
+
945
+
In situations where font fallback occurs,
946
+
fallback fonts might not share the same aspect value as the desired font family
947
+
and will thus be less readable.
948
+
The 'font-size-adjust' property is a way
949
+
to preserve the readability of text when font fallback occurs.
950
+
It does this by adjusting the font-size
951
+
so that the x-height is the same
952
+
regardless of the font used.
966
953
967
-
How text rendered in each of these fonts compares is shown below, the columns show text rendered in Verdana, Futura and Times.
968
-
The same font-size value is used across cells
969
-
within each row and red lines are included to show the differences in x-height. In the upper half each row is rendered in the same font-size value. The same is true
970
-
for the lower half but in this half the 'font-size-adjust' property is also set so that the actual font size is adjusted
971
-
to preserve the x-height across each row. Note how small text remains relatively legible across each row in the lower half.
954
+
<div class="example">
955
+
The style defined below defines Verdana as the desired font family,
956
+
but if Verdana is not available Futura or Times will be used.
972
957
973
-
<figure>
974
-
<img alt="text with and without 'font-size-adjust'" src="images/fontsizeadjust.png" >
975
-
<figcaption>Text with and without the use of 'font-size-adjust'</figcaption>
976
-
</figure>
958
+
<pre>
959
+
p {
960
+
font-family: Verdana, Futura, Times;
961
+
}
977
962
978
-
This property allows authors to specify an <a>aspect value</a> for an element that
979
-
will effectively preserve the x-height of the first choice font, whether it is substituted
0 commit comments