> 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

Reply via email to