diegomura / diegomura/react-pdf
Cannot display U+xxxxx utf-32 symbols
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
**Describe the bug**
I want to display all Chinese text as well.
I found out that normal Chinese text display well.
But some hard text that encoded with 4 bytes can not get a good display and overlayed by other word.
e.g.
https://www.compart.com/en/unicode/U+24256
U+24256 "𤉖" display 'PV' in PDF.
**To Reproduce**
Steps to reproduce the behavior including code snippet (if applies):
1. register font with:
https://fonts.google.com/specimen/Cactus+Classical+Serif
which support the text '𤉖'
https://fonts.google.com/specimen/Chocolate+Classical+Sans?preview.text=%F0%A4%89%96
2. show pdf with text '𤉖'
_You can make use of [react-pdf REPL](https://react-pdf.org/repl) to share the snippet_
**Expected behavior**
I should see '𤉖' display correct in the PDF.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: Mac OS
- Browser Chrome
- React-pdf version 4.1.4
Contributor guide
Assessment
This issue has not been assessed yet.