php - How to fix that adding a custom font in tcpdf results in dotted output? -
i want add custom font. converted otf file ttf, , load them via:
$std = \tcpdf_fonts::addttffont($frutigerstd, 'truetypeunicode', '', 96); these command seem something these values set, $std have value frutigerltstdcn.
and use set them, in extended tcdp class via:
$this->setfont($std); yet once open generated pdf, adobe reader declare:
cannot extract embedded font 'aaaaac+frutigerltstd-cn'. characters may not display or print correctly. and true enough, result dotted mess:

what missing or doing wrong?
it turned out font erroneous. generated converting otf font ttf, , though can use generated font within macos, has issues tcdp. once got font actual true type file, issue resolved.
Comments
Post a Comment