Skip to content

Commit 449e57e

Browse files
authored
Merge pull request w3c#6381 from fantasai/vertical-metrics-overrides
[css-fonts-5] Add vertical metrics overrides. w3c#6152
2 parents 7dd2bc3 + f68b5a3 commit 449e57e

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
@@ -406,21 +406,21 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors</
406406

407407
<pre class='descdef'>
408408
Name: ascent-override
409-
Value: normal | <<percentage [0,Infinity]>>
409+
Value: [ normal | <<percentage [0,Infinity]>> ]{1,2}
410410
For: @font-face
411411
Initial: normal
412412
</pre>
413413

414414
<pre class='descdef'>
415415
Name: descent-override
416-
Value: normal | <<percentage [0,Infinity]>>
416+
Value: [ normal | <<percentage [0,Infinity]>> ]{1,2}
417417
For: @font-face
418418
Initial: normal
419419
</pre>
420420

421421
<pre class='descdef'>
422422
Name: line-gap-override
423-
Value: normal | <<percentage [0,Infinity]>>
423+
Value: [ normal | <<percentage [0,Infinity]>> ]{1,2}
424424
For: @font-face
425425
Initial: normal
426426
</pre>
@@ -430,6 +430,9 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors</
430430
<a spec="CSS-INLINE-3">descent metric</a>, and
431431
<a spec="CSS-INLINE-3">line gap metric</a>
432432
of the font, respectively.
433+
The first value provides the value for the x axis,
434+
and the second value provides the value for the y axis
435+
(defaulting to ''ascent-override/normal'' if omitted).
433436

434437
<dl dfn-for="ascent-override!!descriptor,descent-override!!descriptor,line-gap-override!!descriptor" dfn-type=value>
435438
<dt><dfn>normal</dfn>
@@ -456,6 +459,10 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors</
456459
They can, however, affect the behavior of ''line-height: normal''
457460
and more generally the baseline alignment of [=inline-level=] content.
458461

462+
Note: Since these metrics are only applicable in the [=block axis=],
463+
the y-axis value will only be used
464+
when [=typesetting upright=] in vertical [=typographic modes=].
465+
459466
<div class="example">
460467
The percentage is resolved against different font sizes for different elements.
461468

@@ -512,28 +519,28 @@ the 'superscript-position-override', 'subscript-position-override','superscript-
512519

513520
<pre class='descdef'>
514521
Name: superscript-position-override
515-
Value: normal | from-font | <<percentage>>
522+
Value: [ normal | from-font | <<percentage>> ]{1,2}
516523
For: @font-face
517524
Initial: normal
518525
</pre>
519526

520527
<pre class='descdef'>
521528
Name: subscript-position-override
522-
Value: normal | from-font | <<percentage>>
529+
Value: [ normal | from-font | <<percentage>> ]{1,2}
523530
For: @font-face
524531
Initial: normal
525532
</pre>
526533

527534
<pre class='descdef'>
528535
Name: superscript-size-override
529-
Value: normal | from-font | <<percentage [0,Infinity]>>
536+
Value: [ normal | from-font | <<percentage [0,Infinity]>> ]{1,2}
530537
For: @font-face
531538
Initial: normal
532539
</pre>
533540

534541
<pre class='descdef'>
535542
Name: subscript-size-override
536-
Value: normal | from-font | <<percentage [0,Infinity]>>
543+
Value: [ normal | from-font | <<percentage [0,Infinity]>> ]{1,2}
537544
For: @font-face
538545
Initial: normal
539546
</pre>
@@ -543,6 +550,9 @@ the 'superscript-position-override', 'subscript-position-override','superscript-
543550
specify the superscript offset, subscript offset, superscript size, and subscript size
544551
metrics of the font, respectively,
545552
which are used to synthesize glyphs when required by 'font-variant-position'.
553+
The first value provides the value for the x axis,
554+
and the second value provides the value for the y axis
555+
(defaulting to the first value if omitted).
546556

547557
<dl dfn-for="superscript-position-override!!descriptor,subscript-position-override!!descriptor,superscript-size-override!!descriptor,subscript-size-override!!descriptor" dfn-type=value>
548558
<dt><dfn>normal</dfn>
@@ -561,6 +571,10 @@ the 'superscript-position-override', 'subscript-position-override','superscript-
561571
the given percentage multiplied by the used font size.
562572
</dl>
563573

574+
Note: Since these metrics are only applicable in the [=block axis=],
575+
the y-axis value will only be used
576+
when [=typesetting upright=] in [=vertical typographic modes=].
577+
564578
<h2 id="font-rend-props">
565579
Font Feature Properties</h2>
566580

0 commit comments

Comments
 (0)