Skip to content

Commit ad6e867

Browse files
committed
[css-fonts-4][editorial] Tidy up remaining mentions of stretch value #551
1 parent 6f7c48d commit ad6e867

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

css-fonts-4/Overview.bs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,8 +1001,8 @@ Font width: the 'font-width!!property' property</h3>
10011001
When a face does not exist for a given width,
10021002
values less than 100% map to a narrower face if one exists, otherwise a wider face.
10031003
Conversely, values greater than or equal to 100% map to a wider face if one exists, otherwise a narrower face.
1004-
Some fonts might support a range of stretch values;
1005-
if the requested stretch value is not available in the font,
1004+
Some fonts might support a range of width values;
1005+
if the requested width value is not available in the font,
10061006
the closest supported value is used, using the same mapping rules
10071007
(see the [[#font-matching-algorithm]] for the precise algorithm).
10081008
For TrueType / OpenType fonts that support variations,
@@ -1967,7 +1967,7 @@ when a font family lacks a suitable face.
19671967
* synthesize a bold face by drawing a thin stroke around each glyph
19681968
* synthesize small-caps, superscripts, or subscripts by
19691969
rendering regular glyphs at a smaller size and positioning them appropriately
1970-
* syntesize an oblique face by geometrical shearing of each glyph
1970+
* synthesize an oblique face by geometrical shearing of each glyph
19711971
</div>
19721972

19731973
Synthesis is a fallback strategy
@@ -4218,20 +4218,20 @@ if all font style properties were set to their initial value.
42184218

42194219
<ol id="fontstylematchingalg">
42204220
1. 'font-width!!property' is tried first. If a font
4221-
does not have any concept of varying strengths of stretch values, its stretch value
4221+
does not have any concept of varying strengths of width values, its width value
42224222
is mapped according table in the <a href="#widthmappings">property definition</a>.
42234223
If the matching set includes faces with width values
42244224
containing the 'font-width!!property' desired value, faces with width values which do not include the desired width value
42254225
are removed from the matching set. If there is no face
4226-
which contains the desired value, a stretch value is chosen using the rules below:
4226+
which contains the desired value, a width value is chosen using the rules below:
42274227

4228-
* If the desired stretch value is less than or equal to 100%, stretch values below the
4229-
desired stretch value are checked in descending order followed by
4230-
stretch values above the desired stretch value in ascending order until a
4228+
* If the desired width value is less than or equal to 100%, width values below the
4229+
desired width value are checked in descending order followed by
4230+
width values above the desired width value in ascending order until a
42314231
match is found.
4232-
* Otherwise, stretch values above the
4233-
desired stretch value are checked in ascending order followed by
4234-
stretch values below the desired stretch value in descending order until a
4232+
* Otherwise, width values above the
4233+
desired width value are checked in ascending order followed by
4234+
width values below the desired width value in descending order until a
42354235
match is found.
42364236

42374237
Once the
@@ -4245,15 +4245,15 @@ if all font style properties were set to their initial value.
42454245

42464246
<img src="images/stretchdistance.svg" alt="algorithm">
42474247

4248-
The font stretch ranges supported by fonts A, B, and C are shown in the graph above. As you can see, because font B contains the minimum stretch value across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font C would then contain the lowest distance in the family, so it would be selected.
4248+
The font width ranges supported by fonts A, B, and C are shown in the graph above. As you can see, because font B contains the minimum width value across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font C would then contain the lowest distance in the family, so it would be selected.
42494249
</div>
42504250

42514251
<div class="example" id="ex-ascending-stretch-2">
42524252
Similar to the <a href="#ex-ascending-stretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-width: 75%":
42534253

42544254
<img src="images/stretchdistance2.svg" alt="distance graph">
42554255

4256-
As you can see, because font B contains the minimum stretch value across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font A would then contain the lowest distance in the family, so it would be selected.
4256+
As you can see, because font B contains the minimum width value across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font A would then contain the lowest distance in the family, so it would be selected.
42574257
</div>
42584258

42594259
2. 'font-style!!property' is tried next

0 commit comments

Comments
 (0)