Custom Font sizing does not work for Size Classes in Interaction Builder
| Originator: | scontini | ||
| Number: | rdar://22920397 | Date Originated: | 09/30/2015 |
| Status: | Duplicate of 18535469 (Open) | Resolved: | No |
| Product: | Xcode | Product Version: | iOS9 |
| Classification: | Minor bug | Reproducible: | Yes |
Summary:
Custom Font sizing does not work for Size Classes in Interaction Builder
Steps to Reproduce:
1) Create a project with a single screen.
2) Add a new font to your project
Create two UILabels using your new custom font:
3) Create the 1st UILabel and set the font in the Interface builder to your custom font. (This is your control so you can see your font is installed in general...)
4) Create the 2nd UILabel, set the font in the interface builder to your custom font, and then
4a) Add a font size constraint for Any W Any H
4b) Add a different font size constraint for Compact W Any H
5) Run your project on an Ipad 2
6) Change the size of your app's screen from Regular width to Compact Width.
Expected Results:
I expected to see the custom font for both labels.
I expected to see the custom font change size based on the size constraints set for the label that had different sizes set for Compact Width Any Height size class.
Actual Results:
Only the UILabel with a default size showed the custom font.
The UILabel with a separate constraint for the Compact Width Any Height size class displayed the system font (instead of the custom font chosen in IB) and did not change size based on the size class...
Version:
iOS 9
Notes:
Configuration:
Simulator. iPad Air 2.
Reference:
http://stackoverflow.com/questions/26166737/custom-font-sizing-in-xcode6-size-classes-not-working-properly-w-custom-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!