diegomura / diegomura/react-pdf

Hangul with underscore returns invalid status (returns dots)

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

Description

**Describe the bug**

When I use Hangul with underscore, or other characters (like `+`, `-`, ...etc ), whole strings seem dot chraracters.
It's working when I make documents in english with those characters.

**To Reproduce**
for example,

```

한글_+english

```

_In react-pdf.org/repl, hangul texts not working at all._

**Expected behavior**

All String characters should seem correctly.

I'm not sure the reason of falling invalid state, I think mapping/substituting gylph or features (selecting scripts) is the one.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/23271779/157186250-a565d406-e824-4161-b84e-ceeecab9c93b.png)

without special characters, working well.
![image](https://user-images.githubusercontent.com/23271779/157187231-49c6d239-10ed-4afb-a4a9-a09304ae4c7b.png)

**Desktop (please complete the following information):**
- OS: [Any OS: MacOS, Windows]
- Browser [Any Browser : Safari, Chrome, Firefox]
- React-pdf version [v2.0.21]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.