react-native-render-html icon indicating copy to clipboard operation
react-native-render-html copied to clipboard

Font family not working

Open cipherbrains opened this issue 1 year ago • 3 comments

Decision Table

  • [X] My issue does not look like “The HTML attribute 'xxx' is ignored” (unless we claim support for it)
  • [X] My issue does not look like “The HTML element <yyy> is not rendered”

Good Faith Declaration

  • [X] I have read the HELP document here: https://git.io/JBi6R
  • [X] I have read the CONTRIBUTING document here: https://git.io/JJ0Pg
  • [X] I have confirmed that this bug has not been reported yet

Description

font family not work

React Native Information

font family not work

RNRH Version

latest

Tested Platforms

  • [X] Android
  • [X] iOS
  • [ ] Web
  • [ ] MacOS
  • [ ] Windows

Reproduction Platforms

  • [ ] Android
  • [X] iOS
  • [ ] Web
  • [ ] MacOS
  • [ ] Windows

Minimal, Reproducible Example

Screenshot 2024-04-12 at 4 38 27 PM

Additional Notes

No response

cipherbrains avatar Apr 12 '24 11:04 cipherbrains

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

ansmlc avatar Apr 19 '24 07:04 ansmlc

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

pradhyumansinh9849 avatar Apr 19 '24 10:04 pradhyumansinh9849

you need to set systemFonts

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

carlos-dubon avatar Nov 21 '24 20:11 carlos-dubon