Thread View: mod.computers.laser-printers
1 messages
1 total messages
Started by rs
Wed, 25 Mar 1987 17:56
Mixing font families in troff & PostScript
Author: rs
Date: Wed, 25 Mar 1987 17:56
Date: Wed, 25 Mar 1987 17:56
47 lines
1973 bytes
1973 bytes
I once had to do something similar, when I wanted to substitute
Courier for Times-Italic for a (you guessed it) C style manual.
Here's what I did. First, cd to /usr/lib/ps/troff.font, or wherever
else you keep your PostScript/troff font data. Pick an existing
font .MAP file, and copy it to your new fake font-family name:
cp Times.map Rich.map
Skip past the comments, and look for
@FAMILYNAME Times
@FACENAMES R I B S
Change those two lines read
@FAMILYNAME Rich
@FACENAMES R I H S
As it says in the comments, R/I/H/S are the names that you're going
to call the fonts. The fourth font must be "S", a troff limitation.
In this example, I'm punting Bold for Helvetica.
Next, put the full TransScript font names into the file. That means
replacing the section that reads
@BEGINFONTS
ROMAN=Times-Roman
ITALIC=Times-Italic
BOLD=Times-Bold
SYMBOL=Symbol
EXTRAS=Times-Roman
@ENDFONTS
With something like this:
@BEGINFONTS
ROMAN=Times
ITALIC=Times-Italic
BOLD=Helvetica
SYMBOL=Symbol
EXTRAS=Times-Roman
@ENDFONTS
Edit the Makefile, adding your new font family:
FAMILIES = Times.ct Helvetica.ct Rich.ct
Do a make, and perhaps a "make install."
Now print some documents
ptroff -F Rich /usr/doc/cmanual
Enjoy,
/r$
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads