react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

DEFAULT FONTS IS NOT WORKING

Open ipetersenpai opened this issue 1 year ago • 14 comments

image

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

ipetersenpai avatar May 10 '24 13:05 ipetersenpai

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

This is a duplicate of #2730.

bdkopen avatar May 10 '24 13:05 bdkopen

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.

ipetersenpai avatar May 10 '24 15:05 ipetersenpai

@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.

bdkopen avatar May 10 '24 20:05 bdkopen

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.

ipetersenpai avatar May 13 '24 01:05 ipetersenpai

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

bdkopen avatar May 13 '24 01:05 bdkopen

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

astanb avatar May 22 '24 14:05 astanb

any news about this?

fedeevilla avatar May 22 '24 19:05 fedeevilla

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

yttriummelt avatar May 23 '24 19:05 yttriummelt

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"
},

Elliot67 avatar May 23 '24 22:05 Elliot67

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

thanks!

R1NEJ0 avatar Jun 04 '24 23:06 R1NEJ0

Going all the way back to 3.3.5 still doesn't fix the issue for us...

luskin avatar Jun 12 '24 17:06 luskin

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"
},

It works, thanks!

bayasdev avatar Aug 05 '24 20:08 bayasdev

Can someone test latest version and report if this is fixed? It should

diegomura avatar Sep 22 '24 18:09 diegomura

Can someone test latest version and report if this is fixed? It should

I got default fonts working by upgrading @react-pdf/renderer to 4.0.0 👍

karlwir avatar Oct 02 '24 08:10 karlwir

Will closed as fixed

diegomura avatar Jan 11 '25 04:01 diegomura