Open prathasaxena opened 4 years ago
@prathasaxena Did you find a solution?
@prathasaxena Did you find a solution?
I used this, for some reasons it was not accessing local files.
Okay, thanks)
Hey Guys, i made a fork of this repo and added the needed functionality.
BTW you can use local fonts but you have to convert them, i use https://transfonter.org/ for this.
best regards :)
I've got an MR to provide more context on using custom fonts.
Check it out if you're lost like I was: https://github.com/wxik/react-native-rich-editor/pull/241
@stulip
I have been trying to add a custom font family to editor html: I added jf-flat-regular-webfont.woff, jf-flat-regular-webfont.woff2 files parallel to the editor file.
then i added the custom fonts in the html
finally I applied the font in
contentCSSText:
font-size: 45px; min-height: 200px; height: 100%; font-family:'jf_flatregular';
, // initial valid };but the changes did not reflect.