Add manpage section about using non-default fonts. - enscript - GNU Enscript
(HTM) git clone git://thinkerwim.org/enscript.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8683fe10ef3968ca68ac7051ddfa97e84ac6bad9
(DIR) parent eadf22e7bb86de4971c6c57592a2aadfd1766f2d
(HTM) Author: Max Cantor <max@maxcantor.net>
Date: Sun, 7 Oct 2012 15:31:07 -0700
Add manpage section about using non-default fonts.
Diffstat:
M docs/enscript.man | 15 +++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/docs/enscript.man b/docs/enscript.man
@@ -192,6 +192,10 @@ font and its size in PostScript points. For example,
"\f3Times\-Roman12\f1" selects the "Times\-Roman" font with size
12pt.
+The name of the font must appear in @DATADIR@/enscript/font.map and
+have a corresponding AFM file. See section \f3USING NEW FONTS\f1 for
+information on adding a font beyond the defaults.
+
The font specification \f2name\f1 can also be given in format
`\f2name\f1@\f2ptsize\f1', where the name of the font and its point
size are separated by a `@' character. This allows \f3enscript\f1 to use
@@ -1387,6 +1391,17 @@ some characters were unprintable
~/.enscript/ personal resource directory
.fi
+.SH USING NEW FONTS
+
+If you instruct enscript to use a font whose name does not appear in the
+font map, it will give the warning "couldn't open AFM file for font".
+
+To create an AFM file for a TrueType font, you can use \f3ttf2pt1\f1.
+
+Once you create the AFM file, you must add it to the font map.
+
+To generate a new font map automatically, use \f3mkafmmap\f1.
+
.SH SEE ALSO
diffpp(1), ghostview(1), gs(1), lpq(1), lpr(1), lprm(1), states(1)