Git Product home page Git Product logo

Comments (8)

marcbachmann avatar marcbachmann commented on July 18, 2024 2

Phantom doesn't know how to load the file. Either load them using a http host or using a file protocol.

src: url('/static/fonts/raleway/raleway-regular-webfont.eot');

I guess you can use src: url('file:///static/fonts/ralew... (with three slashes)
Or http://example.com/static/fonts...

from node-html-pdf.

dooburt avatar dooburt commented on July 18, 2024

Perfect! Thank you Marc ;)

from node-html-pdf.

marcbachmann avatar marcbachmann commented on July 18, 2024

You're welcome

from node-html-pdf.

uber1geek avatar uber1geek commented on July 18, 2024

I am facing this issue where fonts are not rendering on windows but the pdf works perfectly fine on *nix.
Is there a workaround this ?

from node-html-pdf.

funnix avatar funnix commented on July 18, 2024

if only empty pdf are generated, this can only be the font?
Are there any standard fonts that html-pdf takes and where do they have to be?

from node-html-pdf.

B-StS avatar B-StS commented on July 18, 2024

@dooburt @marcbachmann
Hi, I have done this, my font seems loaded ok, but I cannot copy the text from the generated PDF.
If I remove the font-family style I can copy the text on the PDF, have you experienced a similar issue ?
Do you have any workaround this issue ?
Thanks

from node-html-pdf.

emussu avatar emussu commented on July 18, 2024

Hi all, any command line options to set font for html-pdf, am hving same issue of page rendered with Helvetica and the pages look terrible

from node-html-pdf.

marco910 avatar marco910 commented on July 18, 2024

@dooburt @marcbachmann Hi, I have done this, my font seems loaded ok, but I cannot copy the text from the generated PDF. If I remove the font-family style I can copy the text on the PDF, have you experienced a similar issue ? Do you have any workaround this issue ? Thanks

@B-StS I'm having the same issue. Seems like custom fonts are getting vectorized. Did you resolve it meanwhile?

from node-html-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.