[net.text] Multiple fonts in troff

rentsch@unc.UUCP (Tim Rentsch) (11/03/86)

I have been trying to figure out a way to get lots of fonts (more
than four) in a single troff document.  My environment is running
various *troffs (troff, dvitroff, ditroff) on sun workstations, with
a LaserWriter as an output device.  The LaserWriter has Times Roman,
Helvetica, and Courier fonts, some or all of which (but more than
four at a time!) I would like to use.  Is there a troff expert out
there who can help with this?

(Please forgive my ignorance, I don't normally use troff.
Circumstances force me to do so.)

cheers,

txr

jrw@hropus.UUCP (Jim Webb) (11/05/86)

> I have been trying to figure out a way to get lots of fonts (more
> than four) in a single troff document.  My environment is running
> various *troffs (troff, dvitroff, ditroff) on sun workstations, with
> a LaserWriter as an output device.

You specify fonts like zo in SVR2 ditroff:

	\fHthis is Helvetica\fP and this is what we were Previously.

\f followed by a font name makes the change for single letter font names,
\f( is used for two-char names.  \fP returns you to the previous font.

You can also use font numbers if you know them, or load them.  For example,
1 is usually Roman, 2 is Italic, and 3 is Bold.  So, you could do this:

\f1this is in roman,\f2 this is in italic, \f3and this is in bold\f1

Hope this helps.
-- 
Jim Webb             "Out of phase--get help"          ...!ihnp4!hropus!jrw
		"Use the Force, Read the Source"