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 What you need to do is grab a copy of the AmericanTypewriter font. Which is located at Next obtain and run the program Edit the "font.map" file located in Add in the AmericanTypewriter font to the list.
Lastly re-run the enscript and choose the new font, process as you would normally after that but now including the AmericanTypewriter font.
|
|||||||
|
|
If you have some basic LaTeX knowledge (and a working LaTeX installation), I strongly recommend you to take a look at Fletcher Penney's Multimarkdown, an extended Markdown interpreter, which has a great customizable feature of converting text files to Check Chapter 5 of the Multimarkdown manual on how to customize LaTeX output – you will need to install both Multimarkdown (installer) and the support files. Then, nothing prevents you from using |
|||
|
