meliorence / react-native-render-html

iOS/Android pure javascript react-native component that renders your HTML into 100% native views
https://meliorence.github.io/react-native-render-html/
BSD 2-Clause "Simplified" License
3.49k stars 588 forks source link

Font family not working #656

Open cipherbrains opened 7 months ago

cipherbrains commented 7 months ago

Decision Table

Good Faith Declaration

Description

font family not work

React Native Information

font family not work

RNRH Version

latest

Tested Platforms

Reproduction Platforms

Minimal, Reproducible Example

Screenshot 2024-04-12 at 4 38 27 PM

Additional Notes

No response

ansmlc commented 7 months ago

I have a similar issue. For me the font-family gets ignored only on Android and only for headings. Any workarounds?

pradhyumansinh9849 commented 7 months ago

I have a similar issue. For me the font-family gets ignored only on Android and only for headings. Any workarounds?

i got all in

p tag , in p tag not font family work in my case

carlos-dubon commented 1 day ago

you need to set systemFonts

<RenderHTML systemFonts={['IRANSansX-Bold']} />