8000 [css-fonts-4] [varfont] Values in font-variation-settings should be normalized 0.0 - 1.0 · Issue #573 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-fonts-4] [varfont] Values in font-variation-settings should be normalized 0.0 - 1.0 #573

@typemytype

Description

@typemytype

As the draft is setup now the number value in font-variation-settings for each axis has to refer to the ranges declared in the font.

Somehow this feels contra productive. fe: Did some tests today with the Webkit nightly build and ended up with opening Skia with fontTools to know the range (the wdth axis has a range from 0.61998 to 1.2999). Web designers should not know about those values. Font foundries should not bother explaining those values to web designers, so they can set them correctly. The number value could represent a normalised value going from 0 to 1.

The draft also declares that the number values outside a range should be ignored. It seems better to declare extrapolations as an endless fixed value by limiting the value to the boundaries of a range. Similarly as what MutatorMath and fontTools.varLib does.

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

      0