How do I get the font name from an otf or ttf file?
问题 I have used a custom font in my previous app. The file name was \"ProximaNova-Regular.otf\" and to load the font I just used... [UIFont fontWithName:@\"ProximaNova-Regular\" size:20]; This worked perfectly. Now in this new app I have three font files... Dude_Willie.otf Impact handsean.ttf But I\'m not sure how to load these. I have tried [UIFont fontWithName:<the file name> size:20]; But this just falls back to using Helvetica. How can I find what name to use? 回答1: Follow these four easy