nitin k m p
nitin k m p

Reputation: 329

Unable to add certain fonts in an iphone app

In my app i need to add two fonts:

Insight_screen_Regular-e and Insight_screen_Bold-e

I have dragged and dropped them in the ttf formats to the Xcode project resources folder. In the application-info.plist file I have added the key "Fonts provided by application" to a new row and then added two items for added fonts.Then i built the project.

Yet i am unable to access these fonts from the xib files. What might be the reason. Thanks in advance.

Upvotes: 0

Views: 360

Answers (2)

kevboh
kevboh

Reputation: 5245

Read this answer.

You're probably not using the right string in fontWithName:size:. You need to use the PostScript name of the font in fontWithName:size:, which you can find by opening the font in Font Book on OS X, selecting the font, and pressing cmd+I.

Upvotes: 1

Warif Akhand Rishi
Warif Akhand Rishi

Reputation: 24248

From .m File I am using custom font like this

btnPhotoLibrary.titleLabel.font = [UIFont fontWithName:@"Hand Of Sean" size:18];

enter image description here

Upvotes: 0

Related Questions