9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] /lib/font fonts in troff
@ 2008-07-01  3:05 Pietro Gagliardi
  2008-07-01 15:19 ` Russ Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Pietro Gagliardi @ 2008-07-01  3:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello. I found a few fonts from /lib/font (Courier, for aesthetic
reasons, and erik's vera, for its complete Unicode conformance) that
I'd like to make available to troff. Is there any way to do this? I'll
name the files myself (Other-Courier and Bitstream-Vera, perhaps).
Thanks.




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

* Re: [9fans] /lib/font fonts in troff
  2008-07-01  3:05 [9fans] /lib/font fonts in troff Pietro Gagliardi
@ 2008-07-01 15:19 ` Russ Cox
  2008-07-01 21:37   ` Pietro Gagliardi
  0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2008-07-01 15:19 UTC (permalink / raw)
  To: 9fans

> Hello. I found a few fonts from /lib/font (Courier, for aesthetic
> reasons, and erik's vera, for its complete Unicode conformance) that
> I'd like to make available to troff. Is there any way to do this? I'll
> name the files myself (Other-Courier and Bitstream-Vera, perhaps).

Courier is already available in troff.
It is mounted by default as CW in position 5.
Look in /sys/lib/troff/font/devutf for others.

Trying to use fonts from /lib/font/bit is not
a very good idea -- they will look crummy on
paper since they are just low-resolution bitmap
fonts.  You need to find Type 1 or TrueType or
OpenType versions.

In p9p, $PLAN9/dist/troff contains tools for
creating the relevant troff font descriptions for
new font files.  I'll warn you right now that it
is very unlikely the script is going to work out
of the box for you--it was more just a record
of what I put together than something I expected
other people to use--so you're going to have to
figure it out.  It also contains an rm command
at the top that you might want to look at before
you run it.

The script there generated the files in

	$PLAN9/postscript/font/luxi
	$PLAN9/postscript/font/dejavu
	$PLAN9/troff/font/devutf/Luxi*
	$PLAN9/troff/font/devutf/DejaVu*

The Deja Vu fonts are Bitstream Vera with
additions, so perhaps you could get by with
just copying the relevant files from p9p
and not bothering trying to generate new
font files.  It's a bit of a black art.

Russ


P. S.  I don't know what font is in /lib/font/bit/courier,
but it's not exactly Courier.  The A is missing the top serif
and the @ is much squarer than the usual Courier.



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

* Re: [9fans] /lib/font fonts in troff
  2008-07-01 15:19 ` Russ Cox
@ 2008-07-01 21:37   ` Pietro Gagliardi
  0 siblings, 0 replies; 3+ messages in thread
From: Pietro Gagliardi @ 2008-07-01 21:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

To be honest, it's that 1 glyph that I prefer. It looks much more
unambiguous than the one in troff's CW and you can find it in just
about any Bell Labs-produced book that uses the font.

On Jul 1, 2008, at 11:19 AM, Russ Cox wrote:

>
> P. S.  I don't know what font is in /lib/font/bit/courier,
> but it's not exactly Courier.  The A is missing the top serif
> and the @ is much squarer than the usual Courier.
>




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

end of thread, other threads:[~2008-07-01 21:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-01  3:05 [9fans] /lib/font fonts in troff Pietro Gagliardi
2008-07-01 15:19 ` Russ Cox
2008-07-01 21:37   ` Pietro Gagliardi

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).