Jspdf: what is default font family while creating PDF using fromHTML method ?

Created on 4 Jul 2017  路  5Comments  路  Source: MrRio/jsPDF

Thank you for submitting an issue to jsPDF. Please read carefully.

Are you using the latest version of jsPDF? Yes

Have you tried using jspdf.debug.js? Yes

Steps to reproduce

Duplicate Question

All 5 comments

Thanks for your help.
How can I set or change the font family.
Although I tried to change it using doc.setFont method but still it is taking the Times font.when I debug the code then I found times font is hard coded in the file.
Any clue on this .

Answered Question.
Duplicate of #1335

Hey @Uzlopak , Is there a way to change the default Font for "jspdf": "^1.5.3",
I am using fromHTML as I want to be able to copy the content of the exported PDF. The only problem is I can't change the font-family. Thanks

@Uzlopak is there a way to change the font using fromHTML?

Was this page helpful?
0 / 5 - 0 ratings