Git Product home page Git Product logo

Comments (9)

Elliot67 avatar Elliot67 commented on June 22, 2024 3

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

from react-pdf.

fedeevilla avatar fedeevilla commented on June 22, 2024 2

any news about this?

from react-pdf.

bdkopen avatar bdkopen commented on June 22, 2024

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

This is a duplicate of #2730.

from react-pdf.

ipetersenpai avatar ipetersenpai commented on June 22, 2024

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.

from react-pdf.

bdkopen avatar bdkopen commented on June 22, 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.

from react-pdf.

ipetersenpai avatar ipetersenpai commented on June 22, 2024

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.

from react-pdf.

bdkopen avatar bdkopen commented on June 22, 2024

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

from react-pdf.

alexstanbury avatar alexstanbury commented on June 22, 2024

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

from react-pdf.

yttriummelt avatar yttriummelt commented on June 22, 2024

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

from react-pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.