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
Right now the spec says "For each local font font on the system".
I think it'd be better to create definitions for this. Eg:
Font metadata has:
A postscript name, a DOMString.
A full name, a DOMString.
A family, a DOMString.
A system font is a font that is available system-wide by the operating system.
To read a system font as a font representation… (this lets you detail the kinds of filtering a browser may perform here)
To get all system font metadata, perform the following steps:
Let |fonts| be a subset of [=system fonts=] [=read as font representations=]. Subsetting may be defined by the user agent, and can include safelists, or a selection UI shown to the user.
Let |fontMetadatas| be a new list.
[=For each=] |font| of |fonts|:
Let |metadata| be a new [=font metadata=].
Set |metadata|'s [=postscript name=] to…
Etc etc
Sort |fontMetadatas| by…
Return |fontMetadatas|.
The text was updated successfully, but these errors were encountered:
Right now the spec says "For each local font font on the system".
I think it'd be better to create definitions for this. Eg:
Font metadata has:
A system font is a font that is available system-wide by the operating system.
To read a system font as a font representation… (this lets you detail the kinds of filtering a browser may perform here)
To get all system font metadata, perform the following steps:
The text was updated successfully, but these errors were encountered: