entria / react-native-fontawesome

React Native Font Awesome Icons
MIT License
176 stars 34 forks source link

FontAwesome.ttf #28

Open Luckygirlllll opened 6 years ago

Luckygirlllll commented 6 years ago

Where is the FontAwesome.ttf? Without adding this file to the project library wouldn't work?

grobmeier commented 6 years ago

Download it manually - this lib won't do it for you.

keung7252 commented 5 years ago

Where is the FontAwesome.ttf? Without adding this file to the project library wouldn't work?

leandrosimoes commented 5 years ago

Where is the FontAwesome.ttf? Without adding this file to the project library wouldn't work?

The FontAwesome.ttf is no longer used, because fontawesome does not have this file anymore. Now the fontawesome use separated files named like this:

fa-brands-400.ttf fa-regular-400.ttf fa-solid-900.ttf

mdere-unbound commented 5 years ago

so for IOS - do we need to rename it ? I am getting Unrecognized font family 'FontAwesome5FreeSolid'

bmcn99 commented 5 years ago

Where is the FontAwesome.ttf? Without adding this file to the project library wouldn't work?

The FontAwesome.ttf is no longer used, because fontawesome does not have this file anymore. Now the fontawesome use separated files named like this:

fa-brands-400.ttf fa-regular-400.ttf fa-solid-900.ttf

I've downloaded those files, put them in my fonts folder and run react-native link again but am still getting the square box with a cross instead of the icon. Do you know if there's anything else undocumented that needs to be done to get this going?

forjoyilive commented 4 years ago

I had to modify FontAwesomeIcons.js and change the font names, which weren't matching the actual names of the font files that I saw when opening the fonts in FontBook.

e.g. instead of "FontAwesome5FreeSolid" I changed it to "Font Awesome 5 Pro" -- or "Font Awesome 5 Free" if I were using the free set.

There might be a better solution, but I'm not sure what it is?