Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hebrew is not rendering with custom font #3010

Open
thewh1teagle opened this issue Dec 28, 2024 · 0 comments
Open

Hebrew is not rendering with custom font #3010

thewh1teagle opened this issue Dec 28, 2024 · 0 comments

Comments

@thewh1teagle
Copy link

thewh1teagle commented Dec 28, 2024

Describe the bug
I'm trying to generate PDF with Hebrew characters with React + Vite. Once I save the PDF and open it I see this:

I use Noto Sans font which supports Hebrew.

To Reproduce

git clone https://github.com/thewh1teagle/react-pdf-render-hebrew-repro
cd react-pdf-render-hebrew-repro
npm install
npm run dev

Open http://localhost:5173/ and click Save
Open the saved PDF and see the invalid render.

Expected behavior
It should render the Hebrew characters correctly

Desktop (please complete the following information):

  • OS: macOS
  • Browser Brave
  • React-pdf version 4.1.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant