From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Thinking of getting Helvetica Black, how to add to troff? From: "Russ Cox" Date: Tue, 27 Nov 2007 10:56:07 -0500 In-Reply-To: <4485A76F-F022-4FCA-9727-9F8A9C29AE8F@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20071127155608.6C2541E8C22@holo.morphisms.net> Topicbox-Message-UUID: 0ccc4e5c-ead3-11e9-9d60-3106f5b1d025 > Hello. I'm thinking of getting the Helvetica Black font (http:// > www.linotype.com/12565/helveticablack-font.html? > PHPSESSID=fe724d529f3cedd385a9625bf2e87340#format) for troff. What > format should I get it in and how do I install it as HK in both troff > and lp? Thanks. Lp is easy: copy each Type 1 font file to /sys/lib/postscript/font/Name where Name is the exact PostScript name of the font (e.g., Helvetica-Black, but you'll have to double-check). Troff is a bit harder. You'll need to convert the AFM font metrics into a form that troff can understand. http://swtch.com/usr/local/plan9/dist/troff contains the programs I used to convert DejaVu for the plan9port distribution. I think I wrote those programs. I don't know if there are more official ones. The shell script there uses OpenForge (a Unix font program) to convert TTF and SFD files into Type 1, if you don't have Type 1 already. Read the script before blindly running it. You want to use that to generate font files in /sys/lib/troff/font/devutf. If you want the font to be named HK, then use HK. Notice that you don't have to use a two-letter name here, and HK is already taken for Helvetica-LightOblique, so you might be better off using Helvetica-Black as the file name. Then you can say .fp 1 HK Helvetica-Black in your troff document to install Helvetica-Black as \f1 and \f(HK. Russ