-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
hello,
i made a pdf using jspdf with custom font called Nunito Sans.i used doc.html(). But after using this font the css inside this not working properly.but in default font which provide by jspdf the style works perfectly.
issues->
- the words are overlapping side by side.
2.tried other custom font like dm-sans the problem was also there. , . / ' ' ;
this characters also not move with words.
`
const componentAsHTML = `
<div class="bg-white h-full rounded-2xl" >
<p class="font-nunito-sans"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse, consequuntur accusantium sequi itaque dolores assumenda debitis commodi nostrum. Odio, dolor. Quo aliquid neque vitae veniam omnis odio quae at non?</p></div>`;
doc.html(componentAsHTML, {
callback: function () {
doc.save("downloaded-pdf.pdf");
},
x: 50,
y: 20,
});
anatolykopyl
Metadata
Metadata
Assignees
Labels
No labels