PHP: How to read “Title” of font from .ttf file?

I really need to be able to extract the metadata from a .ttf true type font file.

I'm building a central database of all the fonts all our designers use (they're forever swapping fonts via email to take over design elements, etc). I want to get all the fonts, some have silly names like 00001.ttf, so file name is no help, but I know the fonts have metadata, I need some way to extract that in PHP.

Then I can create a loop to look through the directories I've specified, get this data (and any other data I can get at the same time, and add it to a database.

I just really need help with the reading of this metadata part.

19
задан Alix Axel 29 January 2012 в 08:06
поделиться