Setting a custom font on an attributed string (UILabel) using Interface Builder doesn't work
Originator: | martin | ||
Number: | rdar://18716979 | Date Originated: | 20-Oct-2014 07:21 PM |
Status: | Open | Resolved: | |
Product: | Xcode | Product Version: | 6 |
Classification: | No Value | Reproducible: | Always |
Summary: When you set an attributed string with a custom font on a UILabel using Interface Builder doesn't work. It only happens with attributed strings. Plain texts with custom font works ok. Steps to Reproduce: 1. Add a Custom Font to your project and include it as a member of the target. 2. Add the font to the UIAppFonts array into your plist. 3. Add a UILabel to your view controller using Interface Buidler 4. Set Text dropdown to "Attributed" 5. Choose the custom font. 6. Compile & run. Expected Results: The label should be shown using the selected font Actual Results: The label is shown using .HelveticaNeueInterface-Regular Version: iOS 8.1 Notes: Configuration: iPhone Simulator
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!
Still seeing this with Xcode 13. The worst part is that this can be "fixed" by installing the custom font on your system via FontBook. But I am now using Xcode Cloud and I can't do that there, so all of the sudden my project is not rendering correctly with builds made in the cloud...
Still present in Xcode 11.4.
Problem still present, Xcode 10.0 (10A255)
Still here, makes attributed string totally useless for using from IB. :/
Still seeing this in XCode 7.3.1. How is this open for so long?
How is this still a bug?
Still exists :(
Bug still exists. Any update on this?
Issue still exists. Pretty disappointing this has stuck around for so long.
Confirmed we're experiencing the same issue.
Agreed. I came across this stoo.
This bug is really annoying, setting attributed text from code is a big time waste.