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