Answers for "How to implement custom fonts in TCPDF"

0

How to implement custom fonts in TCPDF

// convert TTF font to TCPDF format and store it on the fonts folder
$fontname = TCPDF_FONTS::addTTFfont('/path-to-font/FreeSerifItalic.ttf', 'TrueTypeUnicode', '', 96);

// use the font
$pdf->SetFont($fontname, '', 14, '', false);
Posted by: Guest on July-23-2021

Browse Popular Code Answers by Language