Skip to content

Commit f68b5a3

Browse files
committed
[css-fonts-5] Add vertical metrics overrides. w3c#6152
1 parent 427c650 commit f68b5a3

1 file changed

Lines changed: 21 additions & 7 deletions

File tree

css-fonts-5/Overview.bs

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,21 +184,21 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors</
184184

185185
<pre class='descdef'>
186186
Name: ascent-override
187-
Value: normal | <<percentage [0,Infinity]>>
187+
Value: [ normal | <<percentage [0,Infinity]>> ]{1,2}
188188
For: @font-face
189189
Initial: normal
190190
</pre>
191191

192192
<pre class='descdef'>
193193
Name: descent-override
194-
Value: normal | <<percentage [0,Infinity]>>
194+
Value: [ normal | <<percentage [0,Infinity]>> ]{1,2}
195195
For: @font-face
196196
Initial: normal
197197
</pre>
198198

199199
<pre class='descdef'>
200200
Name: line-gap-override
201-
Value: normal | <<percentage [0,Infinity]>>
201+
Value: [ normal | <<percentage [0,Infinity]>> ]{1,2}
202202
For: @font-face
203203
Initial: normal
204204
</pre>
@@ -208,6 +208,9 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors</
208208
<a spec="CSS-INLINE-3">descent metric</a>, and
209209
<a spec="CSS-INLINE-3">line gap metric</a>
210210
of the font, respectively.
211+
The first value provides the value for the x axis,
212+
and the second value provides the value for the y axis
213+
(defaulting to ''ascent-override/normal'' if omitted).
211214

212215
<dl dfn-for="ascent-override!!descriptor,descent-override!!descriptor,line-gap-override!!descriptor" dfn-type=value>
213216
<dt><dfn>normal</dfn>
@@ -234,6 +237,10 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors</
234237
They can, however, affect the behavior of ''line-height: normal''
235238
and more generally the baseline alignment of [=inline-level=] content.
236239

240+
Note: Since these metrics are only applicable in the [=block axis=],
241+
the y-axis value will only be used
242+
when [=typesetting upright=] in vertical [=typographic modes=].
243+
237244
<div class="example">
238245
The percentage is resolved against different font sizes for different elements.
239246

@@ -290,28 +297,28 @@ the 'superscript-position-override', 'subscript-position-override','superscript-
290297

291298
<pre class='descdef'>
292299
Name: superscript-position-override
293-
Value: normal | from-font | <<percentage>>
300+
Value: [ normal | from-font | <<percentage>> ]{1,2}
294301
For: @font-face
295302
Initial: normal
296303
</pre>
297304

298305
<pre class='descdef'>
299306
Name: subscript-position-override
300-
Value: normal | from-font | <<percentage>>
307+
Value: [ normal | from-font | <<percentage>> ]{1,2}
301308
For: @font-face
302309
Initial: normal
303310
</pre>
304311

305312
<pre class='descdef'>
306313
Name: superscript-size-override
307-
Value: normal | from-font | <<percentage [0,Infinity]>>
314+
Value: [ normal | from-font | <<percentage [0,Infinity]>> ]{1,2}
308315
For: @font-face
309316
Initial: normal
310317
</pre>
311318

312319
<pre class='descdef'>
313320
Name: subscript-size-override
314-
Value: normal | from-font | <<percentage [0,Infinity]>>
321+
Value: [ normal | from-font | <<percentage [0,Infinity]>> ]{1,2}
315322
For: @font-face
316323
Initial: normal
317324
</pre>
@@ -321,6 +328,9 @@ the 'superscript-position-override', 'subscript-position-override','superscript-
321328
specify the superscript offset, subscript offset, superscript size, and subscript size
322329
metrics of the font, respectively,
323330
which are used to synthesize glyphs when required by 'font-variant-position'.
331+
The first value provides the value for the x axis,
332+
and the second value provides the value for the y axis
333+
(defaulting to the first value if omitted).
324334

325335
<dl dfn-for="superscript-position-override!!descriptor,subscript-position-override!!descriptor,superscript-size-override!!descriptor,subscript-size-override!!descriptor" dfn-type=value>
326336
<dt><dfn>normal</dfn>
@@ -339,6 +349,10 @@ the 'superscript-position-override', 'subscript-position-override','superscript-
339349
the given percentage multiplied by the used font size.
340350
</dl>
341351

352+
Note: Since these metrics are only applicable in the [=block axis=],
353+
the y-axis value will only be used
354+
when [=typesetting upright=] in [=vertical typographic modes=].
355+
342356
<h2 id="font-rend-props">
343357
Font Feature Properties</h2>
344358

0 commit comments

Comments
 (0)