diegomura / diegomura/react-pdf
Line break issue for chinese font (Noto Serif Simplified Chinese)
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
**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**


**Desktop (please complete the following information):**
- OS: Ubuntu, Windows
- Browser: Chrome, Firefox
- React-pdf version: v3.4.4
Contributor guide
Assessment
This issue has not been assessed yet.