I'm trying to use ubuntu font for uibutton programmatically (button is also created programmatically and it's custom). Here's what I've done.
[self.titleLabel setFont:[UIFont fontWithName:@"Ubuntu" size:20.0]];
but no luck. I've checked everything.
- font is included in build phases
- I've added font in info.plist
But when I add label from interface builder and set ubuntu font from attribute inspector then everything works fine. Font is applied also on uibutton. but when I remove that label problem persists.
What's going on here?
Edit:
I've already followed steps provided in answers of similar problems. like this.
How to include and use new fonts in iPhone SDK?