-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
explainer suggests iterating all the fonts in order to find Consolas #27
Comments
This stood out to me too. Elsewhere (clients api, cache api) we use (although |
I agree that this isn't resolved. |
The example was removed, but more importantly the API shape was updated so that query() takes a property bad, including Not sure why we didn't re-open this earlier, but I'd consider it resolved now. |
The Accessing Font Tables section of the explainer has an example containing:
This seems like a bad example in two ways:
First, it seems inefficient to iterate all the fonts in order to find "Consolas", which is inefficient; it seems like the API should perhaps have a way to ask for the "Consolas" font.
Second, while it's using local font enumeration, it doesn't provide a particularly strong use case for the enumeration feature, since it's a use where enumeration isn't particularly a desirable feature. So showing this as an example rather weakens the argument that enumeration as a feature is worth the additional fingerprinting risk that it adds.
The text was updated successfully, but these errors were encountered: