Ukrainian support
Trying on https://react-pdf.org/repl
The following text
Оплата була зроблена на цей гаманець
Screenshot:
I suspect it could be an issue with the font rather than React-PDF maybe? Does the font embedded in the example support Cyrillic letters?
Agreed, we tested with a locally loaded font that supports Cyrillic and saw the same results, hence I am here. I figured the generic font on the preview would support it.
You probably need to use and register a font that supports unicode. e.g.
import { Font } from "@react-pdf/renderer";
Font.register({
family: "Noto",
src: "https://example-server.com/fonts/NotoSans_Condensed-Regular.ttf",
});
Yep. You need a custom font that has those glyphs
Can you suggest one that works well?
Unfortunately not. I don't know any ukranian fonts