You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
Allow the postscript name of a member in a collection to be supplied to font-named-instance
The text was updated successfully, but these errors were encountered:
Thinking about this, we may actually have accidentally implemented option 2 in the Apple ports of WebKit, just because of how platform APIs expose named instances.
litherum
changed the title
Named instances and collections
[css-fonts] Named instances and collections
Sep 10, 2021
My natural thought would be to do option 2 and 3 (but not 2b). And, if content uses a URL fragment but not font-named-instance, expose the URL fragment in the CSSOM and the CSS Font Loading API under the font-named-instance key. And if an author supplies both, then font-named-instance wins.
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:
For named instances, you say:
I think we have 3-4 options:
src
URL2b. Delete
font-named-instance
entirely since it's unimplemented, and say the only way to use named instances is in the fragment of thesrc
URLfont-named-instance
The text was updated successfully, but these errors were encountered: