Skip to content

Commit 9c55da5

Browse files
committed
some bikeshed link disambiguation and validity fixes; add TR link
1 parent aa7e32d commit 9c55da5

1 file changed

Lines changed: 32 additions & 13 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Status: ED
66
Work Status: Exploring
77
Group: CSSWG
88
ED: https://drafts.csswg.org/css-fonts-4/
9+
TR: https://www.w3.org/TR/css-fonts-4/
910
Editor: John Daggett, Invited Expert, https://twitter.com/nattokirai
1011
Editor: Myles C. Maxfield, Apple Inc., mmaxfield@apple.com
1112
Abstract: This specification defines modifications to the existing <a href="https://drafts.csswg.org/css-fonts-3/">CSS Fonts 3</a> specification along with additional experimental features.
@@ -14,6 +15,19 @@ Ignored Terms: font-palette, <named-palette-color>
1415

1516
<pre class="link-defaults">
1617
spec:css-color-4; type:property; text:color
18+
spec:css22; type:value; for:/; text:block
19+
spec:css-fonts-4; type:descriptor; for:/@font-face; text:font-face-name
20+
spec:css-fonts-4; type:property; for:/; text:font-family
21+
spec:css-fonts-4; type:descriptor; for:/@font-face; text:font-family
22+
spec:css-fonts-4; type:property; for:/; text:font-weight
23+
spec:css-fonts-4; type:descriptor; for:/@font-face; text:font-weight
24+
spec:css-fonts-4; type:property; for:/; text:font-stretch
25+
spec:css-fonts-4; type:descriptor; for:/@font-face; text:font-stretch
26+
spec:css-fonts-4; type:property; for:/; text:font-style
27+
spec:css-fonts-4; type:descriptor; for:/@font-face; text:font-style
28+
spec:css-fonts-3; type:property; for:/; text:font-kerning
29+
spec:css-fonts-3; type:property; for:/; text:font-language-override
30+
spec:css-fonts-3; type:descriptor; for:/@font-face; text:unicode-range
1731
</pre>
1832

1933
Advisement: This document contains ideas and
@@ -1061,7 +1075,7 @@ name:
10611075
</pre>
10621076
</div>
10631077

1064-
<h3 id="font-size-adjust-prop">
1078+
<h3 id="font-synthesis-prop">
10651079
Controlling synthetic faces: the 'font-synthesis' property</h3>
10661080

10671081
<pre class="propdef">
@@ -2008,20 +2022,20 @@ if all font style properties were set to their initial value.
20082022

20092023
Consider a font family with three fonts, named A, B, and C, each with associated supported ranges for the 'font-stretch' descriptor. If an element is styled with "font-stretch: 125", the search algorithm can be visualized as follows:
20102024

2011-
<img src="stretchdistance.svg">
2025+
<img src="stretchdistance.svg" alt="algorithm">
20122026

20132027
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.
20142028
</div>
20152029

20162030
<div class="example">
20172031
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-stretch: 75":
20182032

2019-
<img src="stretchdistance2.svg">
2033+
<img src="stretchdistance2.svg" alt="distance graph">
20202034

20212035
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.
20222036
</div>
20232037

2024-
2. <span id="font-style-matching">'font-style' is tried next.</span>
2038+
2. <a href="#font-style-matching">'font-style' is tried next.</span>
20252039
If a font does not have any concept of varying strengths of italics or oblique angles, its style
20262040
is mapped according to the description in the 'font-style' property definition.
20272041
@@ -2041,7 +2055,7 @@ if all font style properties were set to their initial value.
20412055
<div class="example">
20422056
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-style: italic":
20432057

2044-
<img src="styledistance.svg">
2058+
<img src="styledistance.svg" alt="distance graph">
20452059

20462060
As you can see, because font D contains the minimum italic value across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font E would then contain the lowest distance in the family, so it would be selected. If E were eliminated, C would be selected. If C were eliminated, font B would not be chosen immediately; instead, oblique values would be consulted and an oblique value might be chosen. However, if no oblique value is chosen, font B would then be selected, followed by font A.
20472061
</div>
@@ -2061,7 +2075,7 @@ if all font style properties were set to their initial value.
20612075
<div class="example">
20622076
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-style: oblique 40deg":
20632077

2064-
<img src="styledistance2.svg">
2078+
<img src="styledistance2.svg" alt="distance graph">
20652079

20662080
As you can see, because font D contains the minimum oblique value across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font E would then contain the lowest distance in the family, so it would be selected. If E were eliminated, C would be selected. If C were eliminated, font B would not be chosen immediately; instead, italic values would be consulted and an italic value might be chosen. However, if no italic value is chosen, font B would then be selected, followed by font A.
20672081
</div>
@@ -2085,7 +2099,7 @@ if all font style properties were set to their initial value.
20852099
<div class="example">
20862100
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-style: oblique 13deg":
20872101

2088-
<img src="styledistance3.svg">
2102+
<img src="styledistance3.svg" alt="distance graph">
20892103

20902104
As you can see, because font D contains the minimum oblique value across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font C would then contain the lowest distance in the family, so it would be selected. If C were eliminated, E would be selected. If E were eliminated, font B would not be chosen immediately; instead, italic values would be consulted and an italic value might be chosen. However, if no italic value is chosen, font B would then be selected, followed by font A.
20912105
</div>
@@ -2103,7 +2117,7 @@ if all font style properties were set to their initial value.
21032117
<div class="example">
21042118
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-style: normal":
21052119

2106-
<img src="styledistance4.svg">
2120+
<img src="styledistance4.svg" alt="distance graph">
21072121

21082122
As you can see, because font C contains the minimum oblique value across the entire family, font C would be selected by this algorithm. However, if font C were somehow eliminated from the family, font B would not be chosen immediately; instead, italic values would be consulted and an italic value might be chosen. However, if no italic value is chosen, font B would then be selected, followed by font A.
21092123
</div>
@@ -2137,15 +2151,15 @@ if all font style properties were set to their initial value.
21372151
<div class="example">
21382152
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-weight: 400":
21392153

2140-
<img src="styleweight.svg">
2154+
<img src="styleweight.svg" alt="distance graph">
21412155

21422156
As you can see, because font B contains the minimum oblique value across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font D would then contain the lowest distance in the family, so it would be selected. If D were eliminated, A would be selected, followed by fonts C and then E.
21432157
</div>
21442158

21452159
<div class="example">
21462160
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-weight: 500":
21472161

2148-
<img src="weightmatching.svg">
2162+
<img src="weightmatching.svg" alt="distance graph">
21492163

21502164
As you can see, because font D contains the minimum oblique value across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font B would then contain the lowest distance in the family, so it would be selected. If B were eliminated, C would be selected, followed by fonts A and then E.
21512165
</div>
@@ -2157,7 +2171,7 @@ if all font style properties were set to their initial value.
21572171
<div class="example">
21582172
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-weight: 300":
21592173

2160-
<img src="weightmatching2.svg">
2174+
<img src="weightmatching2.svg" alt="distance graph">
21612175

21622176
As you can see, because font B contains the minimum oblique 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. If A were eliminated, C would be selected.
21632177
</div>
@@ -2243,6 +2257,11 @@ Cluster matching</h3>
22432257

22442258
Issue: Import from level 3
22452259

2260+
<h2 id="font-rend-props">
2261+
Font Feature Properties</h2>
2262+
2263+
Issue: Import from level 3
2264+
22462265
<h2 id="font-feature-variation-resolution">
22472266
Font Feature and Variation Resolution</h3>
22482267

@@ -2767,7 +2786,7 @@ or implement the ability to disable color fonts,
27672786
''@font-palette-values'' rules must simply be ignored;
27682787
the behavior of individual descriptors as defined in this specification should not be altered.
27692788

2770-
<h3 id="font-family-desc">
2789+
<h3 id="font-family-2-desc">
27712790
Font family: the 'font-family' descriptor</h3>
27722791

27732792
<pre class='descdef mq'>
@@ -2931,7 +2950,7 @@ the variation selector is ignored.
29312950
User Agents can choose to draw a <a>Presentation Participating Code Point</a>
29322951
in either emoji style or text style.
29332952
User Agents may wish to follow
2934-
the <a href="http://www.unicode.org/reports/tr51/proposed.html#Presentation_Style">guidance</a> of the Unicode Consortium
2953+
the <a href="http://www.unicode.org/reports/tr51/index.html#Presentation_Style">guidance</a> of the Unicode Consortium
29352954
when performing this decision.
29362955
User agents also may wish to follow platform conventions when performing this decision.
29372956

0 commit comments

Comments
 (0)