You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to use custom fonts with the doc.html() function. If i add a font like described in the read me, and generate a pdf, from html where the font-family css attribute is set to the specific font. But in the generated pdf the text is displayed with the default font.
Thanks for your help,
Miklós
The text was updated successfully, but these errors were encountered:
When i generated the js font file with your generator it set up the font family name like this 'Lato'. (Uppercase first character) But the doc.html() script called eventually the getFont function with 'lato' (lowercase), so the getFont function couldn't find the font, because in the fontmap array it was represented with the key 'Lato'.
So the issue can be hot fixed by rename the font with lowercase chars, but you should probably fix the getFont function to find the font anyway or convert all keys to lowercas in the fontmap array.
Hi there!
Is there any way to use custom fonts with the doc.html() function. If i add a font like described in the read me, and generate a pdf, from html where the font-family css attribute is set to the specific font. But in the generated pdf the text is displayed with the default font.
Thanks for your help,
Miklós
The text was updated successfully, but these errors were encountered: