Hi,
I am trying to add a custom font to my project - I am writing an app for iOS.
I am using X code 9.2.
I did the following:
1. create a folder name 'Resources' under my root project.
2. added the *.ttf files to it and marked the target Membership for each file.
3. update 'info.plist'.
4. added the files to 'copy bundle resouces' in build phases.
I also add the following function:
for (NSString* family in [UIFont familyNames])
{
NSLog(@"%@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family])
{
NSLog(@" %@", name);
}
}
to AppDelegate.m file in order to if my fonts added to the porject.
All was based on this article: https://medium.com/@kswanie21/custom-fonts-in-react-native-tutorial-for-ios-android-76ceeaa0eb78
tried both ways (manual and automatic)
It does not work, any ideas?