Dynamic Type convenience methods for non-system fonts are needed
| Originator: | agiletortoise | ||
| Number: | rdar://17451396 | Date Originated: | 25-Jun-2014 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 7 or greater |
| Classification: | Enhancement | Reproducible: | Always |
Summary: In many circumstances, it is important to be able to use something other than the default system font for user interface elements in 3rd party apps. These reasons include: - Providing a unique personality to an app. - Allowing user selection of fonts that better suited to user preferences (particularly in text editors). - Using monospaced fonts. - Providing accessibility enhanced fonts (such as Dyslexic reader optimized fonts). The Dynamic Type system should provide convenience methods to allow a developer to implement font sizing which adheres to the Dynamic Type settings of the system, but using different custom fonts. While the Dynamic Type system promises customized font sizes selected for that might vary between fonts, some generic way for developers to adopt the rough sizing guidelines in custom font selections is needed for better adoption of the technology. Suggested implementation along the lines of: + (UIFont *)preferredFontForTextStyle:(NSString *)style fontFamilyName:(NSString *)familyName + (CGFloat *)preferredFontSizeForTextStyle:(NSString *)style Steps to Reproduce: Apply a custom font to a UI control's text. Expected Results: Ability to apply custom font to a UI control in a size which reflects the user's Dynamic Type preferences. Actual Results: Using Dynamic type methods resets to the default system font. Version: iOS 7 or greater Notes: Configuration: Any Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!