html2pdf icon indicating copy to clipboard operation
html2pdf copied to clipboard

Ignore missing fonts and fallback to default one

Open Inglebard opened this issue 3 years ago • 0 comments

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 ?

Inglebard avatar Jan 05 '22 15:01 Inglebard