Which fonts work in postscript files?
I think this must be pretty basic stuff, but an area of confusion for me…
On a W7 system I have many fonts. Some are .ttf, some .ttc, some .otf. I need to generate a PS file with text in it. Let's say that onscreen I create a text area and I choose Arial. Using various system calls and parsing font files, etc. I can find the Postscript name, ArialMT. So, I write my PS file as follows (greatly simplified):
/ArialMT findfont
24 scalefont
setfont
newpath
0 640 moveto
(ABCDEFGHIJKLMNOPQRSTUVWXYZ) show
%%EOF
However, if I choose Taz font onscreen and find the Postscript name Taz, when I write this file the output is rendered using Courier (default) font.
/Taz findfont
24 scalefont
setfont
newpath
0 640 moveto
(ABCDEFGHIJKLMNOPQRSTUVWXYZ) show
%%EOF
My question: how can I tell (from font file info or something) that Arial will work, but Taz won't? That is, I can get PostScript names for many fonts, but few work in my PS file, so how do I know or determine which ones can be used?
I understand that I can re-encode and embed fonts in the file. That is a topic for another thread.
I also understand that I can put font outlines in the file, which precludes editing. This something I would do if I knew the chosen font would not work.
Thanks for any help.
