dompdf / php-font-lib

A library to read, parse, export and make subsets of different types of font files.
GNU Lesser General Public License v2.1
1.74k stars 253 forks source link

Incorrectly parsed informations of TTF font in 'name' table #19

Closed ghost closed 9 months ago

ghost commented 10 years ago

There is a problem with some (not all) TTF fonts. Your script is not seeing informations inside name table properly.

Example font: https://dl.dropboxusercontent.com/u/18204395/1.ttf

Your library reports some informations as "not included."


Full name: not included. Postscript name: aSickFontwww.kornnet.too.it Copyright: not included. Trademark: not included. Description: This font was created using the Font Creator Program 4.1 from High-Logic.com

....

But completely different script (http://stackoverflow.com/a/5669037/3631191) reports them properly as follow:

Not a single "not included." in name table. Array ( [1] => A Sick Font www.kornnet.too.it [2] => Regular [3] => A Sick Font www.kornnet.too.it:Version 1.00 [4] => A Sick Font www.kornnet.too.it [5] => Version 1.00 November 15, 2004, initial release [6] => aSickFontwww.kornnet.too.it [7] => A Sick Font www.kornnet.too.it¨ Trademark of . [10] => This font was created using the Font Creator Program 4.1 from High-Logic.com )

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

bsweeney commented 9 months ago

Closing since the original sample is no longer available to test against.