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.Answer1:
Read <a href="https://stackoverflow.com/a/2616101/463892" rel="nofollow">this answer</a>.
You're probably not using the right string in
fontWithName:size:. You need to use the <em>PostScript</em> 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.
From .m File I am using custom font like this
btnPhotoLibrary.titleLabel.font = [UIFont fontWithName:@"Hand Of Sean" size:18];
<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/pTvaq.png" data-original="https://i.stack.imgur.com/pTvaq.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />