[comp.sys.sun] Fonts in Transcript

rsalz@bbn.com (Rich Salz) (10/14/89)

Does xroff use it's own version of troff?

Transcript calls troff and post-processes the output.  The basic troff has
only four fonts, positions one through four.  There are further limits in
that troff "knows" about some of the character slots in font position
four, so if someone told you "ptroff" only supports three font positions,
they wouldn't be off the mark.

Transcript and ptroff only support three font positions. :-)
	/rich $alz

bin@primate.wisc.edu (10/19/89)

In article <2206@brazos.Rice.edu>, by rsalz@bbn.com (Rich Salz):
> Does xroff use it's own version of troff?

It uses data structures that are slightly different than the standard
ones.  This is a real headache when you're trying to crack its font
tables.  In the particular case of xroff for Xerox 2700 printers, the
files containing the font bitmaps are set up differently than I would have
been led to expect from, e.g., dvix27, and from examining a real Xerox
downloadable font, too.  I'm not sure exactly how and why these work, but
they do.  I conjecture that Image Network perhaps "broke" things in
slightly incompatible ways to throw people off the trail.

Paul DuBois
dubois@primate.wisc.edu

shartley@uunet.uu.net (Stephen J. Hartley) (11/02/89)

Yes, the troff manual talks about only four font positions, with Roman,
Italic, Bold, and Special traditionally mounted on them.  If you look at
the first edition of Kernighan and Ritchie's C book, you will notice that
they used troff to typeset their book (see the copyright page).  That book
uses the constant-width font throughout for program fragments.  Somehow
they were able to mount it with the .fp command or switch to it with the
\f mechanism.  Why doesn't it work with troff and Transcript on Sun's?

shartley@shrew.uucp (Stephen J. Hartley) (11/02/89)

In article <2206@brazos.Rice.edu>, by rsalz@bbn.com (Rich Salz):
>Transcript and ptroff only support three font positions. :-)

That would be ok if I could mount temporarily the constant-width font on
position 2 or 3, print some stuff out, then remount bold or italic.  As I
said in my original posting:

>Attempts to mount Courier temporarily on font position 3
>	.fp 3 C
>	\f3word
>	.fp 3 B
>also fail.