diegomura / diegomura/react-pdf
Custom text inside Canvas is not rendered unless a <Text> block exists
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
**Describe the bug**
When rendering custom text inside a ``, the text appears garbled unless there is at least one `` block in the document.
**To Reproduce**
Steps to reproduce the behavior:
1. Clone the repository: [react-pdf-canvas-custom-text-repro](https://github.com/RNm-dove/react-pdf-canvas-custom-text-repro)
2. Run npm install
3. Run npm run dev
4. Open the browser and check the behavior
**Expected behavior**
Custom text inside `` should be rendered correctly even if there is no `` block in the document.
**Screenshots**

**Desktop (please complete the following information):**
- OS: [e.g. MacOS, Windows]
- Browser: Chrome
- React-pdf version: 4.2.1
Contributor guide
Assessment
This issue has not been assessed yet.