Custom font not rendering after applying size class customization

Originator:jsjacob
Number:rdar://27955332 Date Originated:2016-08-25
Status:Duplicate of 18535469 Resolved:No
Product:iOS Product Version:9.3
Classification: Reproducible:Yes
 
Area:
UIKit

Summary:
Added custom font "riffic.ttf" to app. Created two Labels using the custom font. The first label field does not use size class customization. The second label uses size class customization. Xcode renders the custom font both in the storyboard and in the preview. When built and run on the simulator the first Label renders the custom font successfully while the second Label (i.e., with size class customization) does not render the custom font. This incorrect behavior continues when running the build on a device.

Steps to Reproduce:
1. Add a custom font to the project. This includes adding the "Font provided by application" entry to Info.plist
2. Add a label to the storyboard.
3. Create a size class for the label and select the custom font.


Expected Results:
Label text would be rendered with custom font selected for size class.

Actual Results:
Label rendered with font size selected in size class, but typeface was the system default.

Version:
iOS 9.3 (13E230)

Notes:
Apparently reported in 2015. See https://forums.developer.apple.com/message/13682

The Xcode project above can be found at GitHub: https://github.com/jsjacob/CustomFontAndSizeClass

Configuration:
Xcode simulator: iPad Air, iPhone 6s

Attachments:
'Simulator.png', 'CustomFontAndSizeClass-master.zip' and 'Xcode.png' were successfully uploaded.

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!