Skip to content

Commit 5d7a93a

Browse files
authored
Update Overview.bs
1 parent a023194 commit 5d7a93a

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,26 +2933,29 @@ For: @font-face
29332933
Initial: normal
29342934
</pre>
29352935

2936-
These 'ascent-override', 'descent-override' and 'line-gap-override' descriptors define the values
2937-
of the ascent, descent and line gap metrics of the font.
2936+
The 'ascent-override', 'descent-override' and 'line-gap-override' descriptors define the
2937+
<a spec="CSS-INLINE-3">ascent metric</a>, <a spec="CSS-INLINE-3">descent metric</a> and
2938+
<a spec="CSS-INLINE-3">line gap metric</a> of the font.
29382939

2939-
When the descriptor value is 'normal', the metric value is obtained from the font file directly.
2940+
When the descriptor value is 'normal', the corresponding metric value is obtained from the
2941+
font file directly.
29402942

29412943
Note: User agents may choose different pieces of data from the font file as the metric value,
29422944
leading to different layouts. For example, Chrome on Windows uses sTypoAscender, sTypoDescender
2943-
and sTypoLineGap from the font's OS/2 table, while on Mac, it uses those in the HHEA table if available.
2945+
and sTypoLineGap from the font's OS/2 table, while on Mac, it uses those in the HHEA table if
2946+
available.
29442947

2945-
When the descriptor value is a percentage, the metric value is set to the given percentage of the
2946-
em size of the font.
2948+
When the descriptor value is a percentage, the corresponding metric value is resolved as the
2949+
given percentage multiplied by the used font size. Negative values are illegal.
29472950

29482951
<div class="example">
29492952
We may override the metrics of Arial as follows:
29502953

29512954
<pre>@font-face {
29522955
font-family: arial;
29532956
src: local(Arial), url("http://example.com/arial.woff");
2954-
ascent-override: 60%;
2955-
descent-override: 40%;
2957+
ascent-override: 80%;
2958+
descent-override: 20%;
29562959
line-gap-override: 0%;
29572960
}
29582961
</pre>
@@ -2965,7 +2968,7 @@ font-size: 20px;
29652968
line-height: normal;
29662969
</pre>
29672970

2968-
Each line box will be exactly 20px high. Text baseline will be positioned at 12px
2971+
Each line box will be exactly 20px high. Text baseline will be positioned at 16px
29692972
below line box top.
29702973

29712974
</div>

0 commit comments

Comments
 (0)