I'm working with generating .pdf's from PHP using this library: http://www.fpdf.org/
I am currently hung up, though, on adding new fonts, specifically the step on generating the .afm file from a .ttf font file.
I'm following the instructions here: http://www.fpdf.org/en/tutorial/tuto7.htm Which state:
The first step for a TrueType consists in generating the AFM file. A utility exists to do this task: ttf2pt1. The Windows binary is available here. The command line to use is the following:
ttf2pt1 -a font.ttf font
For example, for Comic Sans MS Regular:
ttf2pt1 -a c:\windows\fonts\comic.ttf comic
Two files are created; the one we are interested in is comic.afm.
I can't - or am unsure how to - get ttf2pt1 to load. I'm on a mac but running Win XP via vmware... and when I run the ttf2pt1.exe file over in Windows it loads command line and then quickly closes. Is there some procedure I need to do to install it? I'm not well versed in Win command line.