I'm trying to install a custom font (Open Sans from Google Fonts) and I did everything as some tutorials say and no success. I followed these steps and I can't use the custom font: http://www.practicalentrepreneur.com/how-to-use-a-custom-font-in-xcode-4-5-ios-6-0/
- I imported the .tff file to my project
- Associated the file with my target
- Added the reference in the plist file
- Also added the font in the Font Book app
- Clean, build and run
When I try to list the available fonts with this command:
NSLog(@"fontFamilies: %@", [UIFont familyNames]);
I don't get my imported font family printed.
I already tried some tips from these questions but nothing works:
- xcode custom ttf font not working
- Added custom font not working in Xcode
- OpenSans font not working in iOS simulator
- Custom font in a storyboard?
Thanks!