-
-
Notifications
You must be signed in to change notification settings - Fork 588
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
Unrecognized font family #369
Comments
I'm with the same problem Unrecognized font family 'Arial, Helvetica, sans-serif' and the case is, should I know every font that the user could use and import it to my app? There's no way to replace an unrecognized font family for another one, like browsers do? Thanks |
why this issue is closed without any response? |
Got the same issue. tried to de delete the node style but style the same. |
@aje It was closed by the author! This error is probably caused by inline style. This is a known issue and we should be better at documenting the caveats; you can add font-style to the list of forbidden rules with the prop |
I have found a fix for my issue, i had to delete the styles of any element who had the fontFamily style in it, i used alterChildren props to do so. alterChildren={node => {
if (node.name === 'time') {
if (node?.attribs?.style) {
delete node.attribs.style
}
}
if (node.name === 'a') {
if (node?.attribs?.style) {
delete node.attribs.style
}
}
if (node.name === 'p') {
if (node?.attribs?.style) {
delete node.attribs.style
}
}
if (node.name === 'div') {
delete node.attribs.style
}
return node.children
}} may be that's not the best solution, let me know if there is a better way. |
Hello i was closed the bug because i saw this document. https://github.com/react-native-training/react-native-fonts |
if you want to ignore the font-family, |
This issue has been fixed in the Foundry release. Try it out now! See #430 for instructions. |
1.Unrecognized font family 'serif'
The text was updated successfully, but these errors were encountered: