Closed LYZName closed 8 years ago
Hi alinz, i have worked with xcode fonts before, i also checked your other repo, i still get "Unrecognized font family 'icomoon' " astounded! I could print in font name using swift though (same project has mix of swift, objc and react-native), i have tried restarting packager too. Any ideas?
@navdove
in iOS you should do 2 things in order to add a new font
apple
as fontFamily
.info.plist
and add your ttf font to a value Fonts provided by application
. if it's not there just add new one.
make sure to close react-native package terminal window and rebuild the project in xcode.
I am closing this ticket but feel free to continue the discussion here. I will try my best to help you guys.
Cheers,
@LYZName, so
type
andfrom
are 2 properties which defines which unicode in custom font you want to use andfrom
defines the font's name.if you look at the example folder, code I have used a utility which comes with
react-native-tabbar
callsglypyMapMaker
.For better undrestanding how you could add new fotns to iOS and android app please refer to this repo which I documented everything.