TCPDF Include Calibri

Viewed 2776

I 'm trying to add Calibri to TCPDF, and I 've used:

$fontname = TCPDF_FONTS::addTTFfont('calibri.ttf', 'TrueTypeUnicode', '', 96);
$pdf->SetFont($fontname, '', 12);

However, this works only with the plain font, all bold/italic elements in my text are not shown with these attributes. However I have also calibrib.ttf in the same folder.

How should I tell TCPDF to use the bold version, like it does for the default embedded fonts?

0 Answers
Related