[comp.lang.postscript] How do i Underline?

tony@ajfcal.UUCP (Tony Field) (04/29/89)

A NOVICE (me) is having problems attempting to underline text in a
nroff-to-ps filter I am writing.

                       40 740 moveto
                       (Very )show
                       /Times-Roman findfont 12 scalefont setfont
underline also --->    (few words are used)show
                       /Courier findfont 12 scalefont setfont
                       ( in these lines.)show
                       
What I would really like to have is is a function that is "/BeginUnderline",
and another that is "/DoUnderline" such that I would invoke /BeginUnderline
just before the phrase, and /DoUnderline just after the phrase.

Can anyone give a suggestion as how this should be done??

Thankyou......               tony....
-- 
+------------------------------------
|  Tony Field                             ..uunet!utai!calgary!ajfcal!tony
|  Co-Design Information Systems Ltd.
|  Calgary, Alberta, Canada                 voice: (403) 266-3239

piet@cs.ruu.nl (Piet van Oostrum) (05/03/89)

In article <93@ajfcal.UUCP>, tony@ajfcal (Tony Field) writes:
 `A NOVICE (me) is having problems attempting to underline text in a
 `nroff-to-ps filter I am writing.
 `
If it is nroff-to-ps, nroff will generate underscore characters for you. So
what is the problem?
-- 
Piet van Oostrum, Dept of Computer Science, University of Utrecht
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands
Telephone: +31-30-531806. piet@cs.ruu.nl (mcvax!hp4nl!ruuinf!piet)