-
Notifications
You must be signed in to change notification settings - Fork 711
[css-fonts-4] [varfont] local() and variation fonts #512
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
Comments
Migrated on behalf of @jfkthame: This is just a special case of a more general problem with src:local() ... there's no way to know whether the locally-installed font with a given name is actually the font that was intended. In the worst case, there might be a completely unrelated font that happens to have the same name; more commonly, there may be many versions of a given font in existence, sharing the same name but with different character repertoires and other capabilities (OpenType features, for example). The author has no way of specifying what version or capabilities are required for the local font to be suitable. |
The concept of variation discovery is explicitly not covered in this spec. Currently, there is no way of web content knowing which axes a font supports. This might come later, but for now, it is out of scope. A UA which is concerned with fingerprinting may wish to ignore user-installed fonts for the purposes of font selection. Such a UA would not have the problem of "the user installed a broken version of font X and now my webpage looks broken." Either way, solving this problem would best be done in another effort, as it (at its core) isn't directly related to variation fonts. Relatedly, there is currently no way to do this with OpenType features. If/when support is added in the future, it should be added for both technologies. |
I'd like to list a few scenarios:
|
BTW, https://github.com/erinmclaughlin/roboto/tree/everything-in-source-interp has a VF version of Roboto |
Perhaps whatever solution we find in #633 should be applicable to |
Duplicate of #633 |
Migrated on behalf of @kuettel:
https://github.com/w3c/csswg-drafts/blob/master/css-fonts-4/Overview.bs#L342
While format() is being refined to support variation fonts, e.g. format ("woff-variations") or via an additional parameter (see: #513), similar consideration should be given to local().
Specifically, one should be able to use locally available variation fonts but fallback to downloading the font when the locally available font does not support variations. Perhaps via an additional parameter as well? e.g. local("full name", "variation"), which then would only use "full name" if it was variation ready.
The text was updated successfully, but these errors were encountered: