[X] I followed instructions in documentation written for my React-PDF version
[X] I have checked if this bug is not already reported
[X] I have checked if an issue is not listed in Known issues
[X] If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
Description
I've been using the built-in the Helvetica and Helvetica-Bold out-of-the-box font families for some time and everything worked great.
I recently updated my react-pdf package and it seems that support for out-of-the-box fonts is broken. I first noticed because bold text (Helvetica-Bold) is rendering as normal weight. I went to test Courier and Courier-Bold and they both rendered as Helvetica. I then tried Times-Roman and Times-Bold... everything is still rendering as normal Helvetica.
Steps to reproduce
Create pdf with any of the out-of-the-box font families.
Expected behavior
Using fontFamily "Helvetica" should render as Helvetica with normal font weight. Using fontFamily "Helvetica-Bold" should render as Helvetica with bold (700) font weight.
Actual behavior
Everything renders as Helvetica with normal font weight.
Before you start - checklist
Description
I've been using the built-in the Helvetica and Helvetica-Bold out-of-the-box font families for some time and everything worked great.
I recently updated my react-pdf package and it seems that support for out-of-the-box fonts is broken. I first noticed because bold text (Helvetica-Bold) is rendering as normal weight. I went to test Courier and Courier-Bold and they both rendered as Helvetica. I then tried Times-Roman and Times-Bold... everything is still rendering as normal Helvetica.
Steps to reproduce
Create pdf with any of the out-of-the-box font families.
Expected behavior
Using fontFamily "Helvetica" should render as Helvetica with normal font weight. Using fontFamily "Helvetica-Bold" should render as Helvetica with bold (700) font weight.
Actual behavior
Everything renders as Helvetica with normal font weight.
Additional information
No response
Environment