Closed 9M6 closed 11 months ago
For use custom font's like { raw: "Hello PDFEasy!", text: { font: "Roboto" } }
it's necessary to insert this custom font in the flow $pdf.addFonts()
. This example is only to demonstrate some use examples.
@Novout I have done that, but the addFonts
functionality does not work. I went ahead and debugged your library, and seems the fs
library is not shimmed correctly for the pdfkit.standalone.js
as instead of returning the fs-virtual.js
it returns an empty object due to the other shim
libraries you have used.
I tried to fix it but I didn't have much time to try different things.
I am getting the following issue: