I am trying to import a custom font into XCode and have followed the below steps:
- Added the TTF file to my project under “Supporting Files”
- Added the TTF file under UIAppFonts array in the PList file
- In the ViewController, I have tried to print out the list of available fonts using the below code –
NSLog(@"FONT FAMILIES\n%@",[UIFont familyNames]);
However, the specific font does not appear to have been added to my project. This has me stumped. Can anyone shed some light on what the problem could be?
Figured out the solution – the solution was provided in the answer here – Custom font is not imported