custom font not displaying on some simulator
Follow this steps,it's work fine
1.Select the project
2.Select Targets->Build Phases->Copy Bundle Resoures->Click + Button->Add your Custom font
Like this:
My problem was that I had a fonts folder which contained my font files, and I added the file by selecting "Create folder references" instead of "Create groups".
When I did this, my fonts folder was blue (instead of yellow), and only the font folder appeared in bundle resources; the individual font files contained in the folder did not.
When I added the folder by selecting "Create groups" the individual font files were added to bundle resources and the fonts appeared in the simulator.
- Delete application from simulator
- Clean (by hitting "CMD + K" in Xcode)
- Run again
Few things after including the font files in your project:
- Include them in the target
- Include them as bundle resources
- Include them on your app's plist
- Make sure you're referring to the correct font name.
You can log all fonts by putting this on your app delegate's didFinishLaunchingWithOptions:
for (NSString* family in [UIFont familyNames])
{
NSLog(@"%@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family])
{
NSLog(@" %@", name);
}
}
Details here: http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/