-
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
API should be compatible with iOS font privacy model #62
Comments
Thanks for this information. We are working on a more restricted mode that hasn't surfaced in the explainer or specs. Right now, the chooser is exposed separately from the enumeration API. We are working on potentially unifying the two interfaces. If you've got the time, please take a look. I think that will be compatible the iOS font privacy model. |
This would be a good site to use as a demo: https://oyiptong.github.io/opentype.js/glyph-inspector-picker.html |
The API has shifted to being a The UA is free to present any UI to the user - including a picker that allows selecting a single font, multiple fonts, or all fonts. One challenge with this approach is that the web app won't know whether the returned font(s) represent all fonts available on the system (and thus the user should not be prompted again) or a subset (and thus re-prompting the user makes sense). In the iOS model, the app can be designed with a single UX in mind, but this precludes some use cases e.g. where app wants to present its own font selection experience with local fonts. |
This is a continuation of issue #60 . It was closed with a request for more information and told to reopen the issue, but I can't figure out how to reopen that issue, so I'll just create a new one.
Anyway, the information about the iOS font privacy model is described in this video
https://developer.apple.com/videos/play/wwdc2019/227/
Unlike your font privacy model, iOS doesn't allow applications to enumerate the list of fonts. Applications can show a font picker, allowing the user to authorize a single font be made available to an app, or applications can present a list of fonts to the system, and the system will check which ones are installed and ask the user to make them available to the application. It looks like your font privacy model is just a switch that makes all fonts available to an application or not. This will likely never be implemented in Safari on iOS because then apps could bypass the iOS font security model by simply embedding a WebView in their app and grabbing the font list from the browser.
So my general concerns with the proposed standard (I haven't looked at it in a couple of months, so I apologize if the standard has changed) are
The text was updated successfully, but these errors were encountered: