Php – Wkhtmltopdf not displaying TrueType fonts

fontsPHPwkhtmltopdf

We're using wkhtmltopdf to render a PDF from an HTML page however fonts such as Verdana and Georgia aren't being displayed properly. We installed the TrueType fonts on our server using these instructions. Fonts are being set inline using style tags: style="font-family: verdana, geneva;"

Any suggestions on what we can try next to get these fonts to display would be appreciated.

Best Answer

Try Arman H.'s solution posted over on this question: Google Web Fonts and PDF generation from HTML with wkhtmltopdf

Base64 encoding the fonts into your css has worked like a charm for us.

Related Topic