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

Unable to open serial port using Putty to bluetooth device on windows 7 64 bit -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -