html2pdf
html2pdf copied to clipboard
Ignore missing fonts and fallback to default one
Hi,
I use a TinyMCE to edit some texts. Sometimes, html generated by TinyMCE or because of a copy/paste create some styling code which require a font family. Even if the font family is "standard" and works properly on a browser, it seems that HTML2PDF/TCPDF can't handle it with the following kind of error : "TCPDF ERROR: Could not include font definition file: times new roman"
I would like to know if there is a way to fallback to the default font if the font doesn't exist ? Or ignore all font family ?