diegomura / diegomura/react-pdf

last character not render (thai font)

Open
#1,982 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

I have a problem every last line in tag eg. บริษัท จำกัด. pdf render only บริษัท จำกั
But when i spacing blank space inside before close tag character remain text render is fine. howto fix it

![image](https://user-images.githubusercontent.com/30076862/186366370-0a94a39d-1710-4185-9f43-5f78325d6187.png)
>> is render
![image](https://user-images.githubusercontent.com/30076862/186366497-e11a5066-9dde-4578-8243-efc2caeb2028.png)

`"next": "12.2.5",
"@react-pdf/renderer": "^2.3.0",`

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using a element containing the Thai string บริษัท จำกัด with @react-pdf/renderer 2.3.0, then compare output with and without a trailing space. Check whether the final character is omitted only during PDF rendering; done means the complete Thai text renders without requiring extra whitespace.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.