[comp.lang.postscript] Courier and ptroff.

karl@umb.umb.edu (Karl Berry.) (09/02/88)

How does one use Courier in troff? I am posting to this group
because our output device is a LaserWriter, and we are using
Transcript's ptroff.

We have the width table in /usr/lib/ps/troff.fonts/ftC.
It seems to us that the following troff program (we ran it through
ms, but that doesn't seem like it should be relevant) should
do the expected thing:

.fp 3 C
\fB This should be typewriter? \fR And this roman?

(That's the whole file.)

Both questions come out in roman.

We can get the entire document to come out in Courier with the
incantation `ptroff -F Courier x.ms'. Then italic comes out
in Courier italic, etc, etc. But this is not what we want.

Any help is appreciated.

Karl.
karl@umb.edu     ...!harvard!umb!karl

malloy@nprdc.arpa (Sean Malloy) (09/07/88)

In article <697@umb.umb.edu> karl@umb.umb.edu (Karl Berry.) writes:
|
|How does one use Courier in troff? I am posting to this group
|because our output device is a LaserWriter, and we are using
|Transcript's ptroff.
|
|We have the width table in /usr/lib/ps/troff.fonts/ftC.
|It seems to us that the following troff program (we ran it through
|ms, but that doesn't seem like it should be relevant) should
|do the expected thing:
|
|.fp 3 C
|\fB This should be typewriter? \fR And this roman?
|
|(That's the whole file.)
|
|Both questions come out in roman.
|

The ptroff program is bizarre. To get courier, you do not use the
obvious 'C' in font changes like \fC, but 'L', for 'Listing' (possibly
deriving from its use in printing source listings in a troff document.
The other Courier fonts (bold and italic) should be \f(LB and \f(LI.

At least, that's the way ptroff was working at our site. Your mileage
may vary.



	Sean Malloy
	Navy Personnel Research & Development Center
	San Diego, CA 92152-6800
	malloy@nprdc.arpa