[NTLUG:Discuss] GS and Postscript debugging.

Steve Baker sjbaker1 at airmail.net
Fri Jan 7 22:36:31 CST 2000


Hi!

  I'm trying to debug some Postscript code (Yuk - I *hate* programming
in Postscript).

  I have code straight from the Postscript cookbook that prints text
using some builtin Postscript fonts - and when I 'lpr' my PS file,
it does exactly what the manual says it should.

  However, as I build up to something more complex, I'm going to get
through a LOT of paper if I have to print every time I want to run
my program!   Presumably, I should be able to use 'gs' from the command
line to run my program and see the results on-screen.

  When I try to do that, I get complaints about the font not existing.
This is odd because it's a builtin font:

   /Times-Roman findfont 15 scalefont setfont
   (Hello World) show

  Can anyone tell me what magical incantation 'lpr' is using to get
'gs' to have standard builtin fonts?  Are there other differences in
the way my code might run in a 'gs' run versus running it to the printer?

  I've RTFM'ed for half a day now and I still havn't figured it out.

  Thanks in advance.


-- 
Steve Baker                  http://web2.airmail.net/sjbaker1
sjbaker1 at airmail.net (home)  http://www.woodsoup.org/~sbaker
sjbaker at hti.com      (work)




More information about the Discuss mailing list