Web Hosting Talk







View Full Version : Font Name Extraction


Shroder
02-10-2004, 04:28 PM
Anyone know how to extract the font name from a TTF file?

stdunbar
02-10-2004, 04:48 PM
I found http://www.codeproject.com/gdi/fontnamefromfile.asp

A ttf file is a classic C file and is a bit of a pain to read. Because it was created by Apple the bytes are in big endian - backwards from Intel based O/S's.

What language do you want to do this in?

Shroder
02-10-2004, 04:58 PM
PHP or if I can't get it in that ASP or Perl would be fine.
Thank you for the link!

-Justin