1👍
✅
Following this Link it’s working perfectly. It’s funny i following this doc before but i did not use a binary string to convert my ttf font.
I downloaded the font on google fonts and after i used a website to convert file ttf to base64 and get the string for the variable const myFont. Don’t be scared because it can be thousand of letters
Just after the solution!
Thank you for your help and have a nice day 🙂
const myFont = ... // load the *.ttf font file as binary string
// add the font to jsPDF
doc.addFileToVFS("MyFont.ttf", myFont);
doc.addFont("MyFont.ttf", "MyFont", "normal");
doc.setFont("MyFont"); ```
Source:stackexchange.com