Skip to content

[css-fonts] Named instances and collections #6600

Open
@litherum

Description

@litherum

Named instances and collections are conceptually similar: they both allow a single file to hold a finite set of faces, where each face has a name. However, in CSS they are currently triggered using wildly different mechanisms:

For font collections, you say:

@font-face {
    font-family: AMemberOfACollection;
    src: url("aFontCollection.ttc#TheMemberIWant");
}

For named instances, you say:

@font-face {
    font-family: ANamedInstance;
    src: url("aVariableFont.ttf");
    font-named-instance: TheNamedInstanceIWant;
}

I think we have 3-4 options:

  1. Keep it like it is
  2. Allow named instances to be specified in the fragment of the src URL
    2b. Delete font-named-instance entirely since it's unimplemented, and say the only way to use named instances is in the fragment of the src URL
  3. Allow the postscript name of a member in a collection to be supplied to font-named-instance

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