Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fa-upgrade script didn't work for me and Android Font Awesome Pro6 Naming Conventions #1617

Open
zacdemi opened this issue May 10, 2024 · 0 comments

Comments

@zacdemi
Copy link

zacdemi commented May 10, 2024

react native 0.73.8
react-native-vector-icons 10.1.0

Description

The fa-upgrad script wouldn't work for me: it would say success, but then the fonts were never copied into a directory. I even tried to specify a directory.


Zacs-MacBook-Pro app % yarn fa6-upgrade
Please enter your Font Awesome Pro npm token:
[SUCCESS] Set up npm config
[SUCCESS] Temporary directory [/var/folders/vv/xtby6zq97476q4tp11rkbxpw0000gn/T/rnvi.XXXXXX.KH6hU988N0] was created

I tried to add the fonts manually for android. Here is the naming conventions you need to use if you do in the meantime. These are converting the 'web' versions downloaded from Font Awesome.

cp "$font_dir_path/fa-light-300.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Light.ttf" &&
cp "$font_dir_path/fa-brands-400.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Brands.ttf" &&
cp "$font_dir_path/fa-regular-400.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Regular.ttf" &&
cp "$font_dir_path/fa-solid-900.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Solid.ttf"
cp "$font_dir_path/fa-duotone-900.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Duotone.ttf"
cp "$font_dir_path/fa-thin-100.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Thin.ttf"
cp "$font_dir_path/fa-sharp-solid-900.ttf" "$DEST_DIR_PATH/FontAwesome6_Pro_Sharp_Solid.ttf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant