🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.computers.laser-printers
Article #761

Mixing font families in troff & PostScript

#761
From: rs
Date: Wed, 25 Mar 1987 17:56
47 lines
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$
Technical Details
Message-ID: <8703271614.AA27247@brillig.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!mit-eddie!genrad!decvax!ucbvax!mirror.TMC.COM!rs

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!mit-eddie!genrad!decvax!ucbvax!mirror.TMC.COM!rs
From: rs@mirror.TMC.COM.UUCP
Newsgroups: mod.computers.laser-printers
Subject: Mixing font families in troff & PostScript
Message-ID: <8703271614.AA27247@brillig.umd.edu>
Date: Wed, 25-Mar-87 12:56:15 EST
Article-I.D.: brillig.8703271614.AA27247
Posted: Wed Mar 25 12:56:15 1987
Date-Received: Sat, 28-Mar-87 14:10:14 EST
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The ARPA Internet
Lines: 47
Approved: laser-lovers@washington.arpa