| 1 |
.\" -*-nroff-*- |
| 2 |
.ds V 2.110 |
| 3 |
.de M |
| 4 |
.BR "\\$1" "(\\$2)\\$3" |
| 5 |
.. |
| 6 |
.ds E " \-\- |
| 7 |
.if t .ds E \(em |
| 8 |
.de Op |
| 9 |
.BR "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" |
| 10 |
.. |
| 11 |
.de Oy |
| 12 |
.BI "\\$1\fR=" "\\$2\fR, " "\\$3\& " "\\$4" "\\$5" "\\$6" |
| 13 |
.. |
| 14 |
.de Ol |
| 15 |
.BI "\\$1\fR=" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" |
| 16 |
.. |
| 17 |
.de Sp |
| 18 |
.if n .sp |
| 19 |
.if t .sp 0.4 |
| 20 |
.. |
| 21 |
.de Es |
| 22 |
.Sp |
| 23 |
.RS 5 |
| 24 |
.nf |
| 25 |
.. |
| 26 |
.de Ee |
| 27 |
.fi |
| 28 |
.RE |
| 29 |
.PP |
| 30 |
.. |
| 31 |
.TH MMAFM 1 "LCDF Typetools" "Version \*V" |
| 32 |
.SH NAME |
| 33 |
mmafm \- creates AFM font metrics for multiple master fonts |
| 34 |
' |
| 35 |
.SH SYNOPSIS |
| 36 |
.B mmafm |
| 37 |
\%[OPTIONS...] |
| 38 |
.I font |
| 39 |
' |
| 40 |
.SH DESCRIPTION |
| 41 |
.B Mmafm |
| 42 |
creates AFM font metrics for PostScript multiple master fonts by |
| 43 |
interpolation. You pass it an AMFM file (multiple master font metrics) and |
| 44 |
options specifying the design point you want, and it writes the resulting |
| 45 |
AFM file to the standard output. |
| 46 |
.PP |
| 47 |
Each |
| 48 |
.I font |
| 49 |
argument is either the filename of an AFM or AMFM font metrics file, or a |
| 50 |
PostScript font name. If you give a font name, |
| 51 |
.B mmafm |
| 52 |
will look up the actual font metrics file using the PSRESOURCEPATH |
| 53 |
environment variable. This colon-separated path is searched for `PSres.upr' |
| 54 |
files, an Adobe method for indexing PostScript resources. |
| 55 |
.PP |
| 56 |
You can also give the name of a multiple master font instance, like |
| 57 |
`MinionMM_367_400_12_'. |
| 58 |
.B Mmafm |
| 59 |
will parse the font name and create that instance for you. `PSres.upr' |
| 60 |
files must be set up for this to work. |
| 61 |
.PP |
| 62 |
Any multiple master font should be distributed with a single AMFM file and |
| 63 |
several AFM files (one for each master). For Myriad, for example, the AMFM |
| 64 |
file is MyriadMM.amfm and the AFM files are MyriadMM-LightCn.afm, |
| 65 |
MyriadMM-LightSemiEx.afm, MyriadMM-BlackCn.afm, and |
| 66 |
MyriadMM-BlackSemiEx.afm. |
| 67 |
.B Mmafm |
| 68 |
needs to find all these files to function. For fonts in the Adobe type |
| 69 |
library, you can download the necessary files from |
| 70 |
<http://www.lcdf.org/type>; look for the mm-metrics package. |
| 71 |
.PP |
| 72 |
You must always supply the AMFM file (or its font name) on the command |
| 73 |
line, but |
| 74 |
.B mmafm |
| 75 |
will look for any required AFM files you don't supply yourself. It tries |
| 76 |
the PSRESOURCEPATH environment variable, and also looks for files named |
| 77 |
`\fIFontName\fR.afm' or `\fIFontName\fR.AFM' in the directory that |
| 78 |
contained the AMFM file. (The Myriad filenames given above fit this |
| 79 |
pattern.) |
| 80 |
.PP |
| 81 |
.B Mmafm |
| 82 |
supports fonts with intermediate masters, like Adobe Jenson and Kepler. If |
| 83 |
your PSRESOURCEPATH environment variable is set up, it will handle these |
| 84 |
fonts automatically. Otherwise, you must first run |
| 85 |
.RB ` "mmpfb \-\-amcp\-info" ' |
| 86 |
on the font outline files to create auxiliary AMCP files for these fonts. |
| 87 |
Each AMCP file should be in the same directory as its corresponding AMFM |
| 88 |
file and should have the same root filename, but with a `.amcp' extension |
| 89 |
instead of `.amfm'. See |
| 90 |
.M mmpfb 1 |
| 91 |
for more information. |
| 92 |
' |
| 93 |
' |
| 94 |
.SH EXAMPLE |
| 95 |
' |
| 96 |
.nf |
| 97 |
% mmafm \-\-weight=400 \-\-width=600 MyriadMM.amfm > MyriadMM_400_600_.afm |
| 98 |
.fi |
| 99 |
' |
| 100 |
.SH OPTIONS |
| 101 |
Long options may be abbreviated to their unique prefixes. |
| 102 |
' |
| 103 |
.TP 5 |
| 104 |
.Oy \-\-output file \-o file |
| 105 |
Send output to |
| 106 |
.I file |
| 107 |
instead of standard output. |
| 108 |
' |
| 109 |
.TP |
| 110 |
.Oy \-\-weight N \-w N |
| 111 |
Set the weight axis to |
| 112 |
.IR N . |
| 113 |
' |
| 114 |
.TP |
| 115 |
.Oy \-\-width N \-W N |
| 116 |
Set the width axis to |
| 117 |
.IR N . |
| 118 |
' |
| 119 |
.TP |
| 120 |
.Oy \-\-optical\-size N \-O N |
| 121 |
Set the optical size axis to |
| 122 |
.IR N . |
| 123 |
' |
| 124 |
.TP |
| 125 |
.Ol \-\-style N |
| 126 |
Set the style axis to |
| 127 |
.IR N . |
| 128 |
.TP |
| 129 |
\fB\-\-1\fR=\fIN\fR (\fB\-\-2\fR=\fIN\fR, \fB\-\-3\fR=\fIN\fR, \fB\-\-4\fR=\fIN\fR) |
| 130 |
Set the first (second, third, fourth) axis to |
| 131 |
.IR N . |
| 132 |
' |
| 133 |
.TP |
| 134 |
.Oy \-\-precision N \-p N |
| 135 |
Round output numbers so they have at most |
| 136 |
.I N |
| 137 |
digits after the decimal point. Smaller numbers are less precise; `\fB\-p |
| 138 |
\fR0' rounds all numbers to integers. The default precision is 3. |
| 139 |
' |
| 140 |
.TP |
| 141 |
.Oy \-\-min\-kern N \-k N |
| 142 |
Only output kerning pairs whose absolute value is |
| 143 |
.IR N |
| 144 |
or larger. Smaller minimum kerns make kerning more precise and the output |
| 145 |
AFM file bigger. The default minimum kern is 2.0. |
| 146 |
' |
| 147 |
.SH TROUBLESHOOTING |
| 148 |
.PP |
| 149 |
Some programs, such as TeX's |
| 150 |
.BR fontinst , |
| 151 |
can choke on AFM files that include fractional numbers. Therefore, if you |
| 152 |
have trouble with an AFM file, try rerunning |
| 153 |
.B mmafm |
| 154 |
with the |
| 155 |
.Op \-\-precision=0 |
| 156 |
option. |
| 157 |
' |
| 158 |
.SH SEE ALSO |
| 159 |
.M mmpfb 1 |
| 160 |
' |
| 161 |
.SH DIAGNOSTICS |
| 162 |
.TP 5 |
| 163 |
\fIFont\fR requires intermediate master conversion programs |
| 164 |
You haven't yet created an AMCP file for \fIFont\fR. |
| 165 |
' |
| 166 |
.SH AUTHOR |
| 167 |
.na |
| 168 |
Eddie Kohler, [email protected] |
| 169 |
.PP |
| 170 |
The latest version is available from: |
| 171 |
.br |
| 172 |
http://www.lcdf.org/type/ |
| 173 |
.br |
| 174 |
AMFM and AFM files for Adobe Type Library fonts are also available at that |
| 175 |
URL. |
| 176 |
.PP |
| 177 |
Thanks to Melissa O'Neill for suggestions and patient |
| 178 |
debugging. |