I'd like to know which font formats iOS supports. I already know that iOS supports the TTF format. Does it support any others—for example, PFM or PMB?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
As of iOS 10, both WOFF and WOFF2 formats are supported. Though there's no info about it
The official documentation on this is spotty to say the least. In the article Adding a Custom Font to Your App, Apple states that can use
True Type Font (.ttf) and Open Type Font (.otf) files
.In related Apple documentation for setting up a configuration profile on iOS, Apple states that you can use
Again only True Type Fonts and Open Type Fonts are official supported. Although this document is not directly related to app development. It is further evidence for official support for fonts only extending to
.ttf
and.otf
.I couldn't find any official documentation for WOFF or WOFF2 support outside of Safari.
As of iOS 7, both TTF and OTF font formats are supported. You can distribute these fonts in your apps, or through configuration profiles (to make them available system wide).