Search code examples
iosios5fontscustom-font

Cannot use a custom font in IOS Application


I am trying to use Accord Light SF Italic font in my application. (Here is the link to the font: http://www.fontpalace.com/font-details/Accord+Light+SF+Italic/)

I have added the font to my resources, updated in the info.plist, done everything but cannot manage the font to show up.

I guess the problem is with the name I should pass to the -[UIFont fontWithName] function. I have tried many variants, like: Accord-Italic, Accord-LightItalic, Accord Light SF Italic, but none of the work. I know I should use the system name of the font, but I do not know how to find it.

Please advise, Thanks!


Solution

  • Try adding your font under Copy bundle resources under build phases.