FontAwesome is not a system font in windows or macOS

I setup the Expo app in my macbook and it works fine. Later I checked in the code in github and tried to set it up on my other windows desktop.
When I load the project in Expo app on my phone, I started to get the following Error:
console.error: "font family ‘fontawesome’ is not a system font and has not been loaded through expo.font.loadAsync.

Why it works fine when running on my macbook? is that because it’s checking the font against the system fonts of the OS it’s running on?

Hey @longicorn, I’d love to help you out.

Could you look at this example and let me know if you are loading fontawesome from a ttf?

I’m not 100% sure why its not working when you run it on your MacBook. I’ve never had system fonts work for me unless I performed a loadAsync on them.

Thanks for replying Jimmy.

I am not loading the fonts from ttf directly. I am using react-native-vector-icons:

import Icon from ‘react-native-vector-icons/FontAwesome’;

It works when running in macbook, but throw erros when running under windows.

Does it work when you build in snack?


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.