8000 [css-fonts-4] [varfont] access to named instances · Issue #525 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-fonts-4] [varfont] access to named instances #525

@gferreira

Description

@gferreira

Reading the overview here, I miss a way to access pre-defined instances by name. While it's great to be able to choose a value for each parameter numerically, in most common cases it will be easier for font users to choose one among several named instances provided by the type designer.

Here’s an example to illustrate what I mean:

10. Use named, pre-defined variation instances contained in the font

@font-face {
  font-family: "MyVariableFamily";
  src: url("MyVariableFamily.otf");
}

<div style="font-family: MyVariableFamily; font-name: 'SemiBold'>hamburgefonstiv</div>
<div style="font-family: MyVariableFamily; font-name: 'Light Condensed';">hamburgefonstiv</div>
<div style="font-family: MyVariableFamily; font-name: 'Black Extended Rounded'>hamburgefonstiv</div>

note: probably related to this.

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