copyright notice analities.
[mftrace.git] / mftrace.1
blobad81aa58d5c2bd2be07acf40cf2cfc211d0411bb
1 .TH MFTRACE 1 "April 5, 2004"
2 .\" Copyright (c) 1999--2006 by the authors
3 .\" 
4 .\" Permission is granted to copy, distribute and/or modify this document
5 .\" under the terms of the GNU General Public License.
6 .\" 
7 .\" You should have received a copy of the GNU General Public License
8 .\" along with this program; if not, write to the Free Software
9 .\" Foundation, Inc.,
10 .\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 
11 .\" 
14 .SH NAME
15 mftrace \- convert METAFONT format fonts into Type1 outline fonts
18 .SH SYNOPSIS
19 .B mftrace
20 .RI [ options ] " fontname"
23 .SH DESCRIPTION
24 .B mftrace
25 is a program that can convert a METAFONT font into a Type1 font.  It
26 is simply called with the name of the font (without a .mf suffix) and
27 produces a Type1 font file called either
28 .IR \%fontname .pfa
30 .IR \%fontname .pfb
31 depending on the command line options.
33 For tracing the bitmap,
34 .B mftrace
35 either uses
36 .B potrace
38 .B autotrace
39 (the former preferred) if available; this can be overridden with the
40 .B \%\-\-autotrace
41 and
42 .B \%\-\-potrace
43 command line options.
46 .SH OPTIONS
47 This program follows the usual GNU command line syntax, with long
48 options starting with two dashes (`-').
50 .TP
51 .BR \-k , \-\-keep
52 Keep all output in directory `mftrace.dir'.
54 .TP
55 .BI \-\-magnification= MAG
56 The magnification to use for the PFA file. The default is 1000. The
57 larger the magnification, the more precise the PFA file will
58 be. However, when the magnification is too large METAFONT can crash
59 with overflow errors.
60 .PP
61 Sadly, many MF fonts contain resolution checks
62 .sp
63 .RS
64     if dots_per_inch * design_size > 1500:
65 .RE
66 .sp
67 This check is susceptible to overflow errors.  Such code should be
68 reported as a bug, and changed to
69 .sp
70 .RS
71     if dots_per_inch > (1500 / design_size):
72 .RE
73 .sp
75 .TP
76 .BI \-\-formats= FMT1,FMT2,...
77 Specify which formats to generate (default is pfa).  Choices are: afm,
78 pfa, pfb, ttf, svg.  Note that
79 .B \%fontforge
80 (formerly called
81 .BR \%pfaedit )
82 must be installed to generate any format except pfa or pfb. For generating
83 afm you need either
84 .B \%fontforge
86 .B \%ghostscript .
88 .TP
89 .B \-\-simplify
90 This will pass the created Type1 font through
91 .B \%fontforge
92 (formerly called
93 .BR \%pfaedit )
94 to simplify and autohint it.
96 .TP
97 .BI \-\-gffile= FILE
98 Use generic font file
99 .I FILE
100 instead of running Metafont.
103 .BR \-I " " \fIDIR\fP ", " \-\-include= \fIDIR\fP
105 .I DIR
106 to the current path for searching files.
109 .BI \-\-glyphs= LIST
110 Process only these glyphs.
111 .I LIST
112 is a comma separated list of decimal numbers or ranges, for example
113 1-10,50,55,90-100.
116 .BI \-\-tfmfile= FILE
118 .I FILE
119 for the TFM file.  (The default is to use
120 .IR \%fontname .tfm).
123 .BR \-e " " \fIENC\fP ", " \-\-encoding=\fIENC\fP
124 Use encoding file
125 .IR ENC .
126 Encoding files used by
127 .B mftrace
128 are basically in the GhostScript/dvips format, but you may use a 
129 special 
130 .B \.notavail
131 glyph name in order to tell mftrace not to process a specific glyph. 
132 If this option is not specified,  
133 .B mftrace
134 will try to determine the encoding file automatically, from the
135 encoding specified in the TFM file, the default being tex256.enc.
138 .B \-\-keep-trying
139 Try to continue if external programs called by mftrace fail. If METAFONT
140 crashes with overflow errors, but nevertheless outputs a GF file, try to 
141 process its output as is (useful for some buggy fonts, see above). If 
142 potrace/autotrace fails to trace a specific character, first try it with 
143 a less smoothed curve, and if that fails, skip the character. By default
144 .B mftrace
145 leaves a file `trace-bug-\fIfont\fP-\fIchar\fP.pbm' and stops the process
146 with a request to file a bugreport.
149 .B \-\-dos-kpath
150 Try to use MikTeX's version of
151 .B kpsewhich.
154 .B \-\-potrace
156 .B potrace
157 for tracing bitmaps.  The default is to use
158 .B potrace
159 if it is found, otherwise to use
160 .BR autotrace .
163 .B \-\-autotrace
165 .B autotrace
166 for tracing bitmaps.
169 .B \-\-no-afm
170 Don't read the AFM file to find font information.
173 .B \-\-noround
174 Do not round coordinates of control points to integer values (use with
175 .BR \-\-grid ).
176 Disabled by default.
179 .BI \-\-grid= GRID
180 Set reciprocal grid size in em units multiplied by ratio
181 magnification/1000.  For example, \fB\-\-grid\fP 10
182 \fB\-\-magnification\fP 1000 will round coordinates of control points
183 to 1/10 of em unit.  Useful simultaneously with the \fB\-\-noround\fP
184 option.  Default \fIGRID\fP value is 1, i.e., round to integer.  This
185 option is only used with
186 .BR potrace .
189 .BI \-D,\-\-define= SYMBOL=VALUE
190 Set the font info \fISYMBOL\fP to the given \fIVALUE\fP. For example
191 \fB-D\fPFamilyName=Foo sets the font family name to \fIFoo\fP. Mftrace tries
192 to fill in sensible default values for the FontName, FamilyName, FullName
193 and Weight fields.
196 .B \-V, \-\-verbose
197 Be verbose.
200 .B \-h, \-\-help
201 Show summary of options.
204 .B \-v, \-\-version
205 Show version of program.
208 .B \-w, \-\-warranty
209 Show warranty and copyright.
212 .SH COPYRIGHT
213 You may redistribute copies of mftrace under the terms of
214 the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
215 There is NO WARRANTY, to the extent permitted by law.
217 This manual page is copyright \(co 2005,2006 Julian Gilbey and is
218 distributed under the GNU General Public License too.
221 .SH "SEE ALSO"
222 .BR mf (1),
223 .BR autotrace (1),
224 .BR potrace (1),
225 .BR fontforge (1).
228 .SH AUTHOR
229 .B mftrace
230 was written by Han-Wen Nienhuys <hanwen@xs4all.nl>.
231 This manual page was originally written by Julian Gilbey <jdg@debian.org>
232 and has been revised by Werner Lemberg <wl@gnu.org>.
234 .\" EOF