The application is configured to use Inter var font which is working fine. But when the PDF is generated, the PDF uses 'Helvetica' instead. I understand that it is html2canvas which is supposed to use the font. The Inter font also supports ligatures and I have enabled some features like tabular numbers, alternate numbers etc., How to get the custom font used ?
I encountered the same problem, when using the custom font, the page display is normal, but I use the html2canvas screenshot, the custom font does not work
I am using html2pdf.js, html2canvas, jspdf to generate PDF of rendered html page.
I am also using custom font for the application which is locally served.
The font configuration is:
The code to generate PDF is:
The application is configured to use
Inter var
font which is working fine. But when the PDF is generated, the PDF uses 'Helvetica' instead. I understand that it is html2canvas which is supposed to use the font. TheInter
font also supports ligatures and I have enabled some features liketabular numbers
,alternate numbers
etc., How to get the custom font used ?https://rsms.me/inter/#features