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:

dotted output of failed tcpdf addttfont

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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -