WICG / local-font-access

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

Include font ID in Font Metadata, not just postscript name #94

Open my2iu opened 2 years ago

my2iu commented 2 years ago

Right now, the spec includes postscript name (nameID=6) in the font metadata to uniquely identify fonts. I know some applications do use the postscript name to identify fonts. But when I read the OpenType spec, it's always a little vague as to whether the Postscript name can uniquely identify non-postscript fonts or fonts with non-western names. Would it not be better to include the "unique font identifier" (nameID=3) in the font metadata, which is a more reliable way to uniquely identify fonts and a more reliable way to do exact font matching?

inexorabletash commented 1 year ago

Feedback from others would be appreciated here. Engineers prior to me did much of the research here about what to expose, so I'm relying on the wisdom of others.

I don't know how much nameID=3 is used in practice for matching.