Skip to content

Commit 0add755

Browse files
committed
[css-fonts] tighten the definition of First Available Font
Closes w3c#1765 and w3c#1798
1 parent 4fd2698 commit 0add755

3 files changed

Lines changed: 19 additions & 15 deletions

File tree

css-fonts-3/Fonts.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3478,14 +3478,14 @@ <h3 id=font-style-matching><span class=secno>5.2. </span>Matching font
34783478
consistent as possible across user agents, given an identical set of
34793479
available fonts and rendering technology.
34803480

3481-
<p>The <dfn id=first-available-font>first available font</dfn>, used in the
3482-
definition of <a
3483-
href="https://www.w3.org/TR/css3-values/#font-relative-lengths"><em>font-relative
3484-
lengths</em></a> such as <code class=property>ex</code> and ‘<code
3485-
class=property>ch</code>’, is defined to be the first available font
3486-
that would match any character given font families in the ‘<code
3487-
class=property>font-family</code>’ list (or a user agent's default font
3488-
if none are available).
3481+
<p>The <dfn id=first-available-font>first available font</dfn>,
3482+
used for example in the definition of <a href="https://www.w3.org/TR/css3-values/#font-relative-lengths"><em>font-relative lengths</em></a>
3483+
such as ‘<code class=property>ex</code>’ and ‘<code class=property>ch</code>
3484+
or in the definition of the <a href="https://www.w3.org/TR/CSS2/visudet.html#propdef-line-height"><code class=property>line-height</code></a> property,
3485+
is defined to be the first available font
3486+
that would match the U+0020 (space) character
3487+
given font families in the ‘<code class=property>font-family</code>’ list
3488+
(or a user agent's default font if none are available).
34893489

34903490
<h3 id=cluster-matching><span class=secno>5.3. </span>Cluster matching</h3>
34913491

css-fonts-3/Fonts.src.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,11 +2566,14 @@ <h3 id="font-style-matching">Matching font styles</h3>
25662566
as consistent as possible across user agents, given an identical set
25672567
of available fonts and rendering technology.</p>
25682568

2569-
<p>The <dfn>first available font</dfn>, used in the definition of
2570-
<a href="https://www.w3.org/TR/css3-values/#font-relative-lengths"><em>font-relative lengths</em></a>
2571-
such as 'ex' and 'ch', is defined to be the first available font that
2572-
would match any character given font families in the 'font-family'
2573-
list (or a user agent's default font if none are available).</p>
2569+
<p>The <dfn>first available font</dfn>,
2570+
used for example in the definition of <a href="https://www.w3.org/TR/css3-values/#font-relative-lengths"><em>font-relative lengths</em></a>
2571+
such as 'ex' and 'ch'
2572+
or in the definition of the <a href="https://www.w3.org/TR/CSS2/visudet.html#propdef-line-height">'line-height'</a> property,
2573+
is defined to be the first available font
2574+
that would match the U+0020 (space) character
2575+
given font families in the 'font-family' list
2576+
(or a user agent's default font if none are available).</p>
25742577

25752578
<h3 id="cluster-matching">Cluster matching</h3>
25762579

css-fonts-4/Overview.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,9 +2610,10 @@ to ensure that the results are as consistent as possible across user agents,
26102610
given an identical set of available fonts and rendering technology.
26112611

26122612
The <dfn>first available font</dfn>,
2613-
used in the definition of <a>font-relative lengths</a> such as ''ex'' and ''ch'',
2613+
used for example in the definition of <a>font-relative lengths</a> such as ''ex'' and ''ch''
2614+
or in the definition of the 'line-height' property
26142615
is defined to be the first available font
2615-
that would match any character
2616+
that would match the U+0020 (space) character
26162617
given font families in the 'font-family' list
26172618
(or a user agent's default font if none are available).
26182619

0 commit comments

Comments
 (0)