Skip to content

Commit 057424c

Browse files
committed
[css-fonts-5] Define superscript/subscript override descriptors. #5518
1 parent 63bdf43 commit 057424c

File tree

1 file changed

+48
-29
lines changed

1 file changed

+48
-29
lines changed

css-fonts-5/Overview.bs

Lines changed: 48 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -278,37 +278,56 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors</
278278
Superscript and subscript metrics overrides:
279279
the 'superscript-position-override', 'subscript-position-override','superscript-size-override' and 'subscript-size-override' descriptors</h3>
280280

281-
Issue(5518):
282-
283-
<pre class='descdef'>
284-
Name: superscript-position-override
285-
Value: normal | <<percentage>>
286-
For: @font-face
287-
Initial: normal
288-
</pre>
289-
290-
<pre class='descdef'>
291-
Name: subscript-position-override
292-
Value: normal | <<percentage>>
293-
For: @font-face
294-
Initial: normal
295-
</pre>
296-
297-
<pre class='descdef'>
298-
Name: superscript-size-override
299-
Value: normal | <<percentage [0,Infinity]>>
300-
For: @font-face
301-
Initial: normal
302-
</pre>
303-
304-
<pre class='descdef'>
305-
Name: subscript-size-override
306-
Value: normal | <<percentage [0,Infinity]>>
307-
For: @font-face
308-
Initial: normal
309-
</pre>
281+
<pre class='descdef'>
282+
Name: superscript-position-override
283+
Value: auto | from-font | <<percentage>>
284+
For: @font-face
285+
Initial: normal
286+
</pre>
287+
288+
<pre class='descdef'>
289+
Name: subscript-position-override
290+
Value: auto | from-font | <<percentage>>
291+
For: @font-face
292+
Initial: normal
293+
</pre>
294+
295+
<pre class='descdef'>
296+
Name: superscript-size-override
297+
Value: auto | from-font | <<percentage [0,Infinity]>>
298+
For: @font-face
299+
Initial: normal
300+
</pre>
310301

302+
<pre class='descdef'>
303+
Name: subscript-size-override
304+
Value: auto | from-font | <<percentage [0,Infinity]>>
305+
For: @font-face
306+
Initial: normal
307+
</pre>
308+
309+
The 'superscript-position-override', 'subscript-position-override',
310+
'superscript-size-override', and 'subscript-size-override' descriptors
311+
specify the superscript offset, subscript offset, superscript size, and subscript size
312+
metrics of the font, respectively,
313+
which are used to synthesize glyphs when required by 'font-variant-position'.
314+
315+
<dl dfn-for="superscript-position-override!!descriptor,subscript-position-override!!descriptor,superscript-size-override!!descriptor,subscript-size-override!!descriptor" dfn-type=value>
316+
<dt><dfn>auto</dfn>
317+
<dd>
318+
The UA determines what metrics value to use,
319+
whether derived from the font or from some heuristic.
311320

321+
<dt><dfn>from-font</dfn>
322+
<dd>
323+
The corresponding metric in the font data is used, if any.
324+
(If the metric is missing, same as ''superscript-position-override/auto''.)
325+
326+
<dt><dfn><<percentage>></dfn>
327+
<dd>
328+
The corresponding metric is replaced by
329+
the given percentage multiplied by the used font size.
330+
</dl>
312331

313332
<h2 id="font-rend-props">
314333
Font Feature Properties</h2>

0 commit comments

Comments
 (0)