Built-in TCPDF font disappears depending on the reader

I have a very nasty problem using the TCPDF PHP library with embedded fonts.

I know that I use it correctly (as the manual says) and that the fonts are correctly embedded.

Whenever I try to read my output files on an Adobe reader, it works great.

But when I use non-adobe readers such as the iPad, SOME and only some fonts completely disappear.

Any suggestions on how to solve this problem or how to debug a PDF file for more information?

+4
source share
1 answer

Use TTF fonts and add them as follows:

$neueCE55r = $pdf->addTTFfont('ttf/HelveticaNeueCE55Roman.ttf', 'TrueTypeUnicode', '', 96); $pdf->SetFont($neueCE55r, '', 20, '', false); 

These fonts should work on all systems.

0
source

Source: https://habr.com/ru/post/1434876/


All Articles