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
Copy file name to clipboardExpand all lines: css-fonts-4/Overview.bs
+88Lines changed: 88 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2908,6 +2908,94 @@ Initial: normal
2908
2908
2909
2909
This descriptor defines initial settings that apply when the font defined by an @font-face rule is rendered. It does not affect font selection. Values are identical to those defined for the 'font-language-override!!property' property defined below except that the value inherit is omitted. When multiple font feature descriptors, properties, or variations are used, the cumulative effect on text rendering is detailed in the section [[#font-feature-variation-resolution]] below.
2910
2910
2911
+
<h3 id="font-metrics-override-desc">
2912
+
Default font metrics overriding:
2913
+
the 'ascent-override', 'descent-override' and 'line-gap-override' descriptors</h3>
2914
+
2915
+
<pre class='descdef'>
2916
+
Name: ascent-override
2917
+
Value: normal | <<percentage>>
2918
+
For: @font-face
2919
+
Initial: normal
2920
+
</pre>
2921
+
2922
+
<pre class='descdef'>
2923
+
Name: descent-override
2924
+
Value: normal | <<percentage>>
2925
+
For: @font-face
2926
+
Initial: normal
2927
+
</pre>
2928
+
2929
+
<pre class='descdef'>
2930
+
Name: line-gap-override
2931
+
Value: normal | <<percentage>>
2932
+
For: @font-face
2933
+
Initial: normal
2934
+
</pre>
2935
+
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, respectively.
2939
+
2940
+
When the descriptor value is 'normal', the corresponding metric value is obtained from the
2941
+
font file directly.
2942
+
2943
+
Note: User agents may draw data from different places from the font file as the metric values,
2944
+
which results in different text layouts.
2945
+
2946
+
When the descriptor value is a percentage, the corresponding metric value is resolved as the
2947
+
given percentage multiplied by the used font size. Negative values are invalid at parse time.
2948
+
2949
+
<div class="example">
2950
+
The percentage is resolved against different font sizes for different elements.
0 commit comments