From f68b5a314e7301fc08d1b96371b719a440660ba9 Mon Sep 17 00:00:00 2001 From: fantasai Date: Mon, 14 Jun 2021 16:30:33 -0700 Subject: [PATCH] [css-fonts-5] Add vertical metrics overrides. #6152 --- css-fonts-5/Overview.bs | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/css-fonts-5/Overview.bs b/css-fonts-5/Overview.bs index 7732a44a4bff..b4d7329c3678 100644 --- a/css-fonts-5/Overview.bs +++ b/css-fonts-5/Overview.bs @@ -184,21 +184,21 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors Name: ascent-override - Value: normal | <> + Value: [ normal | <> ]{1,2} For: @font-face Initial: normal
 	Name: descent-override
-	Value: normal | <>
+	Value: [ normal | <> ]{1,2}
 	For: @font-face
 	Initial: normal
 	
 	Name: line-gap-override
-	Value: normal | <>
+	Value: [ normal | <> ]{1,2}
 	For: @font-face
 	Initial: normal
 	
@@ -208,6 +208,9 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptorsdescent metric, and line gap metric of the font, respectively. + The first value provides the value for the x axis, + and the second value provides the value for the y axis + (defaulting to ''ascent-override/normal'' if omitted).
normal @@ -234,6 +237,10 @@ the 'ascent-override', 'descent-override', and 'line-gap-override' descriptors The percentage is resolved against different font sizes for different elements. @@ -290,28 +297,28 @@ the 'superscript-position-override', 'subscript-position-override','superscript-
 	Name: superscript-position-override
-	Value: normal | from-font | <>
+	Value: [ normal | from-font | <> ]{1,2}
 	For: @font-face
 	Initial: normal
 	
 	Name: subscript-position-override
-	Value: normal | from-font | <>
+	Value: [ normal | from-font | <> ]{1,2}
 	For: @font-face
 	Initial: normal
 	
 	Name: superscript-size-override
-	Value: normal | from-font | <>
+	Value: [ normal | from-font | <> ]{1,2}
 	For: @font-face
 	Initial: normal
 	
 	Name: subscript-size-override
-	Value: normal | from-font | <>
+	Value: [ normal | from-font | <> ]{1,2}
 	For: @font-face
 	Initial: normal
 	
@@ -321,6 +328,9 @@ the 'superscript-position-override', 'subscript-position-override','superscript- specify the superscript offset, subscript offset, superscript size, and subscript size metrics of the font, respectively, which are used to synthesize glyphs when required by 'font-variant-position'. + The first value provides the value for the x axis, + and the second value provides the value for the y axis + (defaulting to the first value if omitted).
normal @@ -339,6 +349,10 @@ the 'superscript-position-override', 'subscript-position-override','superscript- the given percentage multiplied by the used font size.
+ Note: Since these metrics are only applicable in the [=block axis=], + the y-axis value will only be used + when [=typesetting upright=] in [=vertical typographic modes=]. +

Font Feature Properties