question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Docs] Missing documentation for fontFamily

See original GitHub issue

When i want to use custom font name inside Text element and use tailwindcss-react-native classes

The font does not work with the classes used, unlike the use of the rest of the available features, is there any solution?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
marklawlorcommented, Aug 10, 2022
1reaction
marklawlorcommented, Aug 5, 2022

@Ahmedreda20 @mohammed-elhaouari React Native does not allow specifying multiple font families for text or font fallbacks. https://reactnative.dev/docs/text-style-props#fontfamily, On native if an array is provided, NativeWind will simply pick the first font.

NativeWind simply turns the style strings into StyleSheet.create objects. If you have certain font requirements you should follow the methods you would use in a standard React Native project.

Here is a workaround, that should allow you to use custom fonts with nativewind

This isn’t a workaround, this is the standard way to use custom fonts.

I’m going to rename this issue as it seems the only problem is lack of documentation

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Google Fonts
Missing Cross-Origin Resource Sharing (CORS) Response Header. Overview; Potential Cause; Diagnosing; Links. Web Fonts are not showing up on Firefox when ...
Read more >
Arial font style is missing in Google Docs, as well in More Font ...
Hi there,. Unfortunately, it appears that the standard Arial font is no longer supported in Docs. Some fonts (such as this one and...
Read more >
Resolve missing fonts in desktop applications - Adobe Support
If you see a Missing Fonts message upon opening a file in one of your desktop applications, this means that the file uses...
Read more >
How to install fonts missing after upgrading to Windows client
If you have documents created using the missing fonts, these documents might display differently on Windows client.
Read more >
How to Add Fonts to Google Docs - MakeUseOf
Google Docs has a large collection of free web-based fonts. Here's how you can add new fonts to your Google document.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found