Skip to content

[css-fonts-4] [varfont] Fonts may have their own internal mapping of keyword names to values #518

@litherum

Description

@litherum

Variation fonts may have their own internal mappings of keyword names to values. For example, a font may state that "condensed" may correspond to a "wght" axis value of "78.2".

CSS may want to have an explicit table of mappings for keywords to values for font-weight, font-stretch, and font-style.

Alternatively, the spec might benefit if the font file is consulted instead. Doing this would separate the notion of a keyword from the notion of a value (so, for font fallback, a keyword might be applied as a different value in two fonts used in the same element).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions