Select font when converting .txt to .pdf from command line I often need to convert text files to PDF from the command line. I currently use enscript, a2pdf, cupsfilter, etc. The feature I'm missing is the ability to use an OS X font instead of one of the "standard Unix" fonts. I'm particularly interested in the AmericanTypewriter font. Is there an existing tool to do that or perhaps an Apple Script? If not, are there any other ideas?
The solution is to create an afm version of the font you want to use which is American-typewriter for the enscript program to create with. 

What you need to do is grab a copy of the  AmericanTypewriter font. Which is located at /Library/Fonts/AmericanTypewriter.ttc

Next obtain and run the program ttf2pt1.  Copy the output file that you can name atw.afm to enscript's afm directory located at /usr/share/enscript/afm.

Edit the "font.map" file located in /usr/share/enscript/afm

Add in the AmericanTypewriter font to the list.

AmericanTypewriter         atw
AvantGarde-Demi            agd
...                        ...


Lastly re-run the enscript and choose the new font, process as you would normally after that but now including the AmericanTypewriter font.

enscript -f "AmericanTypewriter12" -p postScriptOutputfile yourFile.txt