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

Line break issue for chinese font (Noto Serif Simplified Chinese) #2917

Open
meinjam opened this issue Oct 28, 2024 · 0 comments
Open

Line break issue for chinese font (Noto Serif Simplified Chinese) #2917

meinjam opened this issue Oct 28, 2024 · 0 comments

Comments

@meinjam
Copy link

meinjam commented Oct 28, 2024

Describe the bug
I’m experiencing an issue with line breaks in Chinese text when using @react-pdf/renderer. While text in other languages (e.g., English, French) automatically wraps within the set container width, Chinese characters are rendered in a single line, even when the text overflows the container width. This issue significantly impacts readability and layout in documents with Chinese text. I am using Noto Serif Simplified Chinese font.

Expected behavior
The Chinese text should wrap in next line when it exceeds the defined container width or page boundary.

Screenshots

react-pdf-code
react-pdf-renderer

Desktop (please complete the following information):

  • OS: Ubuntu, Windows
  • Browser: Chrome, Firefox
  • React-pdf version: v3.4.4
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