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

Problem still present, Xcode 10.0 (10A255)

Still here, makes attributed string totally useless for using from IB. :/

By marcus.kuquert at Sept. 1, 2017, 7:04 p.m. (reply...)

Still here in 2017. So, so annoying.

By razvan.paul.birgaoanu at Aug. 16, 2017, 8:31 p.m. (reply...)

Still seeing this in XCode 7.3.1. How is this open for so long?

How is this still a bug?

Still exists :(

By chrisozenne at April 7, 2016, 11:09 p.m. (reply...)

Bug still exists. Any update on this?

Issue still exists. Pretty disappointing this has stuck around for so long.

By TheGamingArt at Dec. 29, 2015, 8:35 p.m. (reply...)

Confirmed we're experiencing the same issue.

Agreed. I came across this stoo.

By mikelikespie at July 13, 2015, 11:51 p.m. (reply...)

This bug is really annoying, setting attributed text from code is a big time waste.

By yogesh.m90 at March 1, 2015, 11:32 p.m. (reply...)

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!