I'm having a problem with TCPDF. My custom font (and any other included font) isn't working when using writeHTML.
$tcpdf = tcpdf_get_instance();
$fontname = $tcpdf->addTTFfont('/antiquariat/sites/default/files/fonts/tstar-regular-webfont.ttf', 'TrueTypeUnicode', '', 32);
$tcpdf->SetFont('tstarwebfont', '', 16);
$tcpdf->writeHTML($html);
Fonts won't change, even if I use "helvetica" or any other font. Second thing is, that the custom font isn't generated at all, but in first place I struggle with that not even any other font is used.
SetFont()
in order for it to work. Note that the fonts do actually embed, but CSS is not able to set the font at all. – Castara