TCPDF ERROR: Could not include font definition file: calibri

Midhun Mathew picture Midhun Mathew · Jun 25, 2013 · Viewed 27.8k times · Source

When I try to use html2pdf I got an error: "TCPDF ERROR: Could not include font definition file: calibri"...

How to fix this?

Answer

nouraty picture nouraty · Jul 2, 2013

calibri is not a default font in tcpdf , you need to add it if you are going to use it in your file : check this https://tcpdf.org/docs/fonts/ . A liste of default fonts in tcpdf and how to add one.