react-native-extension icon indicating copy to clipboard operation
react-native-extension copied to clipboard

Wrong font family name (not match Typeface font name)

Open OlegPanfyorov opened this issue 5 years ago • 1 comments

Hi guys! We've faced a really critical issue for us. I think you should know that fontWeight and fontStyle not working correctly for custom fonts. Its common issue. For example, the Typeface font name is set to Geomanist-Medium:

  • The React Native extension offers us fontFamily: "Geomanist", fontWeight: "500", fontStyle: "normal", On iOS devices fontWeight will be ignored, on android devices fontFamily will be ignored for a custom fonts with fontWeight set.

The correct way would be to copy the Typeface name and paste it to fontFamily, and also have ability to disable fontWeight and fontStyle exporting to code snippet.

Here is the snippet that will work correctly on both platforms with Geomanist-Medium linked to project fontFamily: " Geomanist-Medium", Could you fix/extend the extension this way?

OlegPanfyorov avatar Aug 27 '19 08:08 OlegPanfyorov

As a temporary solution, I've modified your extension locally and run it locally, works great. BTW Could I publish it or no?

OlegPanfyorov avatar Aug 27 '19 09:08 OlegPanfyorov