Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEFAULT FONTS IS NOT WORKING #2750

Open
ipetersenpai opened this issue May 10, 2024 · 9 comments
Open

DEFAULT FONTS IS NOT WORKING #2750

ipetersenpai opened this issue May 10, 2024 · 9 comments

Comments

@ipetersenpai
Copy link

image

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

@bdkopen
Copy link
Contributor

bdkopen commented May 10, 2024

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

This is a duplicate of #2730.

@ipetersenpai
Copy link
Author

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
Copy link
Contributor

bdkopen commented May 10, 2024

@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
Copy link
Author

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
Copy link
Contributor

bdkopen commented May 13, 2024

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

@alexstanbury
Copy link

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

@fedeevilla
Copy link

any news about this?

@yttriummelt
Copy link

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

@Elliot67
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants