WICG / local-font-access

Web API for enumerating fonts on the local system
https://wicg.github.io/local-font-access
Apache License 2.0
77 stars 16 forks source link

Querying for additional font metadata #92

Open my2iu opened 2 years ago

my2iu commented 2 years ago

It might be nice if there was a scheme for querying additional metadata about a font without actually having to load in the complete font itself. Things like character coverage, sub-family, etc.

Alternately, the API could support reading individual font tables from a font. I believe all the OS APIs support that already, except maybe for Android, for which I couldn't find any font APIs the last time I checked. In fact, your API seems a little strange because I think OS-level APIs actually prefer only providing a table at a time because of the messiness of ttc and otc fonts. I haven't checked what your API does for ttc and otc fonts yet.