Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unrecognized font family #18269
Getting error Unrecognized font family 'Museo Sans 500' in iOS simulator only. App works fine on android emulator.
Packages: (wanted => installed)
App should properly open the app.
Steps to Reproduce
Looks to me that you are missing the native side step of adding it to the Info.plist: https://medium.com/react-native-training/react-native-custom-fonts-ccc9aacf9e5e
If following the linked guide fixes the issue for you, please close it afterwards.
@pKanijam in that window (FontBook), go to View -> Show font info (I don't know the exact name in the menu) and you should see something like this:
And you should use the PostScript Name and if this doesn't work, you can use the next code:
That you should place in "AppDelegate.m", after
Exactly as @LuisUrrutia is saying
An other link that should explain the 'name difference' visually is in the example here: https://hiddentao.com/archives/2017/03/10/get-custom-fonts-working-in-react-native/ . (as you can see the FontFamily name is different)