Article View: comp.lang.postscript
Article #6726Re: Changing fonts in ptroff
From: Mr. Video
Date: Sat, 07 Nov 1987 20:20
Date: Sat, 07 Nov 1987 20:20
82 lines
3763 bytes
3763 bytes
In article <2903@vdsvax.steinmetz.UUCP> barnett@steinmetz.UUCP (Bruce G Barnett) writes: <In article <249@thirdi.UUCP> sarge@thirdi.UUCP (Sarge Gerbode) writes: <|I've been using ptroff with good success with my LaserWriter, but I haven't yet <|figured out how (if it can be done) one can change fonts (not just point size <|or italicization) in troff (or macro packages -- I use mm). < <Since I just went through this exercise, I can answer some of your <questions on using fonts, troff, and transcript. Thanks to Bruce, who lead me in the right direction, I too installed the Courier stuff. I will also be installing the other fonts that are on the LaserWriter+. But, some of the things that Bruce tells you to do will get lost if you ever do a complete installation again (possible, as I have done it). I will show the changes in what to do below. <There is an option to ptroff for the font family (-F). <The default is Times Roman. You can also select Helvetica. <e.g. < ptroff -FHelvetica [options] ^^^^^^^^^^ -F Helvetica < <The third - Courier - the constant width font, can be built <by going into /usr/local/lib/ps/troff.fonts: Yes and no. You can do this stuff there, and probably should so that you don't have to do a complete installation again. But, if a complete installation is ever called for, some of this stuff may go away. You want to do the stuff to the Makefile in the ~transcript/lib/troff.font source directory. BTW, it is troff.font, not troff.fonts. By doing it in the source directory, you can rest easy that the next complete installation will not cause your stuff to go away. <Step 1 - make the file Courier.head (included) This step is not necessary as the Makefile will do it for you. <Step 2 - Make the file Courier.map by copying Helvetica.map and applying < the patches given. (included) <Step 3 - Patch the make file (included) <Step 4 - touch (create) the file Courier.ct (needed for make) Not necessary. If the .ct file is missing, make will do the job for you. Step 4a - patch the head.awk file. Add the following line before the 'exit' on line 17 (or there abouts): if ($2 == "C") print ".lg 0" If you do a complete re-installation, then only change the source files. If not, then copy the changed stuff over to the working directory. <Step 5 - type 'make install' < <- You should be able to use the Courier font. <e.g. < ptroff -FCourier ^^^^^^^^ -F Courier <-------------- <Courier.head: <---------------------------------------------- <.fp 1 C <.fp 2 CI <.fp 3 CB <.fp 4 S <.lg 0 <-------------------------------------------------- < <Note the line to disable ligatures. (.lg 0 ) As indicated above, creating this file manually is not necessary. As a matter of fact, even if you did create it, it would be recreated and the '.lg 0' line would be missing, if you didn't do my head.awk file change. -- harvard-\ ihnp4--\ Mr. Video !uwvax.................!nicmad!brown rutgers-/ terminus-/ decvax--/ BITNET: brown%nicmad.UUCP@spool.wisc.edu (until 12/01/87)
Technical Details
Message-ID:
<2119@nicmad.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!astroatc!nicmad!brownReferences:
<249@thirdi.UUCP> <2903@vdsvax.steinmetz.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!astroatc!nicmad!brown From: brown@nicmad.UUCP (Mr. Video) Newsgroups: comp.lang.postscript,comp.text Subject: Re: Changing fonts in ptroff Message-ID: <2119@nicmad.UUCP> Date: Sat, 7-Nov-87 15:20:43 EST Article-I.D.: nicmad.2119 Posted: Sat Nov 7 15:20:43 1987 Date-Received: Tue, 10-Nov-87 04:02:15 EST References: <249@thirdi.UUCP> <2903@vdsvax.steinmetz.UUCP> Reply-To: brown@nicmad.UUCP (Mr. Video) Distribution: na Organization: Mr. Video's Hangout Lines: 82 Keywords: fonts troff