More on Postscript fonts

Joel Hammer joel at hammershome.com
Mon Oct 8 18:49:21 PDT 2007


Well, just to report on my progress in getting truetype
fonts to work with linux.

They work fine. No need to generate afm files or any stuff
like that. I am using them in generating postscript output
for raw postscript files written by hand or generated by
enscript. Just put the truetype fonts into a font directory
used by gs, in this case:

/usr/share/ghostscript/fonts

This directory may not exist by default.

Version 7 of gs uses truetype fonts without difficulty, it
would seem. If you want enscript to know about them, you
have to put them into the font.map in the afm directory,
but, this may not really be necessary except to keep
enscript from complaining it can't find the fonts.

Now, printing these fonts out was a different problem. When
I sent the files to my printer, on another box, the fonts
weren't being used. I just assumed that the postscript
file could be made to include the font definition,
but I couldn't figure out how to do that. I was reduced
to generating pdf files and printing them out but the
pdf files had somewhat different margins and this was
a problem. So, I looked at my print filter on the print
server. It uses gs. Duh. Like, what else? So, I just put
the truetype fonts on the print server (same directory
as above.)

All works fine. So, now I can print all those neat fonts
downloadable from the zillions of fonts available on
line. Unbelievably simple. For linux, that is!

Joel




More information about the Linux-users mailing list