diegomura / diegomura/react-pdf

Nested text styling does not work on Windows

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

Description

**Describe the bug**

**To Reproduce**
Steps to reproduce the behavior including code snippet (if applies):

Rendering this document with Roboto is messing up the formatting of next next blocks:
```




Should be bold

Shouldn't be bold



```
Produces the following result
![image](https://github.com/diegomura/react-pdf/assets/31829779/035b4eb2-9443-449b-a862-042b945d158d)

Making the second part bold is doing nothing:
```




Shouldn't be bold

Should be bold



```
Produces the following result:
![image](https://github.com/diegomura/react-pdf/assets/31829779/5804db18-6d26-47e6-8ea7-acc752751e4e)

**Expected behavior**
Text formatted according to the fontWeight.

**Desktop (please complete the following information):**

- OS: Windows
- Browser: Chrome
- React-pdf version 3.4.3
-

PS: It works perfectly on MacOS

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.