9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Thinking of getting Helvetica Black, how to add to troff?
@ 2007-11-24 21:28 Pietro Gagliardi
  2007-11-27 15:56 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Pietro Gagliardi @ 2007-11-24 21:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] Thinking of getting Helvetica Black, how to add to troff?
  2007-11-24 21:28 [9fans] Thinking of getting Helvetica Black, how to add to troff? Pietro Gagliardi
@ 2007-11-27 15:56 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2007-11-27 15:56 UTC (permalink / raw)
  To: 9fans

> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-27 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-24 21:28 [9fans] Thinking of getting Helvetica Black, how to add to troff? Pietro Gagliardi
2007-11-27 15:56 ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).