Skip to content

@font-face overrides for superscript/subscript metrics #5518

@fantasai

Description

@fantasai

In #4792 we resolved to accept @font-face descriptors for overriding the ascent/descent metrics. In #5225 @litherum suggested also adding metrics for superscripts and subscripts.

The proposal then would be to add:

  • superscript-shift-override, affecting vertical-align: super and font-variant-position synthesis
  • subscript-shift-override, affecting vertical-align: super and font-variant-position synthesis
  • superscript-size-override, affecting font-variant-position synthesis (and maybe some future super keyword for font-size, if we end up going there)
  • subscript-size-override, affecting font-variant-position synthesis (and maybe some future sub keyword for font-size, if we end up going there)

See https://www.w3.org/TR/css-fonts-4/#font-variant-position-prop for an illustration of how these metrics are used for superscript and subscript glyph synthesis.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions