react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Slavic characters

Open markoboras0712 opened this issue 3 years ago • 1 comments

Describe the bug I can't render with any font (my font imported, from cdn imported and your default fonts as Courier, Helvetica) characters: čćđšž

To Reproduce 266067001-2f99ba34-d9bc-4d34-a6f7-9eef12e23dbc

I get in my pdf 266067039-87631884-fe5f-4dfd-bb30-78a1ebe1688d

You can make use of react-pdf REPL to share the snippet

Expected behavior I got in render čćđšž

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): Environment Browser (if applicable): Chrome React-PDF version: 3.1.12 React version: 18.2.0 Webpack version (if applicable):

markoboras0712 avatar Sep 17 '23 09:09 markoboras0712

This is happening because the default fonts provided are not supporting these types of letters. You should register a custom font with support for these letters with Font.register. You could use 'Roboto' for example...

m0rphh avatar Sep 24 '23 15:09 m0rphh