React-native-render-html: Unrecognised font family openSans-light

Created on 2 Dec 2017  路  6Comments  路  Source: meliorence/react-native-render-html

Hi any time I render my html with the above font family I am getting an error. Can you pease let me know what I am doing wrong. The html is valid as I have tested it on web page

Thanks in advance.

Most helpful comment

Resolved using the following prop

ignoredStyles={['font-family', 'letter-spacing']}

All 6 comments

I'm pretty sure this is not related to this plugin. You probably didn't link your font into your project, or it's using a different name than the one you're referencing in your CSS.

Please re-open an issue with more detailed informations if you think this is actually an issue from the plugin.

@Exilz is there any way to ignore fonts specified within the html that may not be installed on the device?

YES. It isn't that in my case the developer hasn't link the font in the project. End users are copying an pasting HTML content into a discussion forum. That html contains inline font styles.

Resolved using the following prop

ignoredStyles={['font-family', 'letter-spacing']}

Thanks I'll try that.

Confirmed! ignoredStyles fixes it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sampsasaarela picture sampsasaarela  路  8Comments

psegalen picture psegalen  路  7Comments

kanikas24 picture kanikas24  路  5Comments

Pradeet picture Pradeet  路  7Comments

Anitorious picture Anitorious  路  7Comments