Hi, I want to extract information (title, author and version) from font files which users will upload.
I tried to extract the information by converting the binary file to plain text but I couldn't find any defining characteristics which I could use to extract the information.
After looking around to see if anyone else had managed to accomplish this I found that the Freetype library has functions which can access the information I want, specifically TT_Get_Name_ID and TT_Get_Name_String. However I can't figure out how to access these functions from PHP (even though I have freetype installed with GD) or how to convert the code to php.
If it's any help i'm using the latest xampp build on windows.