This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
using system fonts #260
Comments
I did voice on some of these ideas with @mikemorris yesterday -- in general I think we should stay away from working with fonts directly on mobile devices for now. |
I'm intrigued by the possibility of extracting a pure C++ library from fontserver for rendering SDFs and shaping from fonts on device (whether system or shipped), but from talking with @yhahn it doesn't sound like this is an approach we want to require developers to take when shipping maps with custom fonts, plus we would have to find a different solution for WebGL anyway. |
Revisit later, maybe. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It seems like it is possible to access system fonts on mobile devices, which could be useful for fallback and supporting CJK. Actually, I can't check if it is possible so it might not be, but hopefully:
On iOS its possible to read system fonts through CGFont. http://stackoverflow.com/a/9381326
http://support.apple.com/kb/HT5878
http://support.apple.com/kb/ht5484
On Android, fonts in /system/fonts/ might be directly readable. Android has less included fonts but Droid Sans Fallback covers everything including CJK.
Two parts of using system fonts:
This would cut out some font transferring and some licensing issues, but fallback fonts would vary across platforms. Stylistically, is this ok?
@kkaefer @mikemorris @yhahn
The text was updated successfully, but these errors were encountered: