Is it possible to include custom fonts in jsPDF ?
With the basic library, if I console log \'doc.getFontList()\' I get:
Courier, Helvetica, Ti
The easiest way that I have found by far is using the jspdf-customfonts package.
Simply install the package by
npm i jspdf-customfonts
then add the following files in the head tag of your index.html for default configurations
script src="https://unpkg.com/jspdf@latest/dist/jspdf.min.js">
Now you can download the ttf file of whichever font you want. Then go to this site, select your font and copy the code, and you are done!