diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.28k stars 1.12k forks source link

DEFAULT FONTS IS NOT WORKING #2750

Open ipetersenpai opened 3 weeks ago

ipetersenpai commented 3 weeks ago

image

The following font are no longer displaying. hopefully this can be fix asap

bdkopen commented 3 weeks ago

@ipetersenpai Downgrade to version 3.4.2 for default fonts to work again.

This is a duplicate of #2730.

ipetersenpai commented 3 weeks ago

still did not work. hopefully in the next update this issue will be fixed because it so hard to tell to the client and let them understand that theere is a minor bug on the package I used.

bdkopen commented 3 weeks ago

@ipetersenpai make sure you have the dependencies pinned and re-install. For example ^3.4.2 is not pinned and will auto update to 3.4.4.

ipetersenpai commented 2 weeks ago

still not fix. I already reinstalled the package without pin on it 3.4.2 hopefully this one get fix soon and the latest version can support the default font style.

bdkopen commented 2 weeks ago

@ipetersenpai can you share example code to reproduce the issue in 3.4.2?

alexstanbury commented 1 week ago

Seeing the same issue on 3.4.4 and 3.4.2, cannot use other font families or bold fonts.

fedeevilla commented 1 week ago

any news about this?

yttriummelt commented 1 week ago

I have the same issue. No response to fontFamily selection.

Elliot67 commented 1 week ago

Downgrading @react-pdf/layout worked as a temporary fix for me.

If you are using npm, you can force a specific version by adding an overrides property in your package.json :

"overrides": {
    "@react-pdf/layout": "3.11.5"
},

Yarn has a similar feature with the resolutions property :

"resolutions": {
    "@react-pdf/layout": "3.11.5"
},