3

I try to set the Font of UILabel on Interface builder. I know how to user custom font by code. But I want to try cool feature on iOS 6 which is Attribute text type.

However, after testing a few font. I notice few things, I can set any font from font book and it is showed up really nice on Attribute Inspector. But some font are not showed up in View controller, event default font that already on mac is not loaded.

I want to use custom font on attributed UILabel, but it only showed up in Attribute Inspector and not loaded in View Controller and simulator.

enter image description here

Tek Yin
  • 3,011
  • 3
  • 25
  • 42
  • What fonts are you using? http://iosfonts.com – Wain Apr 28 '14 at 09:15
  • Try setting `Lines` to `0` – Akhilrajtr Apr 28 '14 at 09:26
  • first line is Bebas Neue, second line is Blackoak, and the last line is Chalkduster... I need to use custom fond aside from default ios font. – Tek Yin Apr 28 '14 at 09:49
  • hope this ll help you. http://stackoverflow.com/questions/9090745/custom-font-in-a-storyboard – gunas Apr 28 '14 at 14:08
  • That is only use 1 font for entire text.. I need to set different font on 1 UILabel... some of it gonna be bold, and the other is regular.. the bold and regular font is Bebas Neue, which is custom font. – Tek Yin Apr 28 '14 at 17:52

0 Answers0