diegomura / diegomura/react-pdf

Poppins font is not working

Open
#2,278 0 comments 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

#### There is a problem with Poppins Font. The font I used is the same as what the documentation recommends, but I have not been able to get it to work. I checked the other fonts and they all worked fine. There may be a problem with the Poppins font.

```
import source1 from "../../assets/fonts/Poppins-Regular.ttf"

const ReservationDetailsPdf = () => {

Font.register({
family: "Poppins",
fonts: source1,
});

return Hello

}
```

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.