'PDF generated with TCPDF showing up fine in Adobe Acrobat but corrupted in Illustrator

Using TCPDF 6.3.5

I'm currently facing an issue where where pdf files fonts show up correctly in Acrobat Pro but if I try to open the same file in illustrator the text is corrupt.

The fonts look like they have been correctly embedded by TCPDF in Acrobat see screenshot from Acrobat

Opening the same file in illustrator the fonts look like this screen shot from illustrator

Have tried: $pdf->setFontSubsetting(false)

This works fine, when I open it in illustrator all the characters are correct but it results with the pdf having a completely different font to what it's meant to be.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source