Setting a custom font in IB doesn't work with size classes.
| Originator: | padraig.kennedy | ||
| Number: | rdar://20201174 | Date Originated: | 17-Mar-2015 10:40 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 8.3 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: We can set custom fonts on UILabels in Interface Builder, and with size classes we can set different fonts and sizes for different classes. Doing this _appears_ to work in Interface Builder — the font shows up correctly there, but when we build the app, it defaults back to the system fonts. Steps to Reproduce: 1. Add a custom font to your project. 2. Add it to UIAppFonts in the plist. 3. Create a UILabel in Interface Builder and set the custom font on it. 4. Add a size class and set a different size for it. 5. Notice that it works in IB. 6. Build the app. Expected Results: iOS should show the fonts in the same way Xcode did in IB. Actual Results: We default back to the system fonts.
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!