| 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 |
.TH MMPFB 1 "LCDF Typetools" "Version \*V" |
| 22 |
.SH NAME |
| 23 |
mmpfb \- creates single-master fonts from multiple master fonts |
| 24 |
' |
| 25 |
.SH SYNOPSIS |
| 26 |
.B mmpfb |
| 27 |
\%[OPTIONS...] |
| 28 |
.I font |
| 29 |
' |
| 30 |
.SH DESCRIPTION |
| 31 |
.B Mmpfb |
| 32 |
creates a normal, single-master PostScript font from a multiple master font |
| 33 |
by interpolation. You pass it a PFB or PFA font and options specifying the |
| 34 |
design point you want; it writes the resulting PFB or PFA font to the |
| 35 |
standard output. |
| 36 |
.PP |
| 37 |
The fonts |
| 38 |
.B mmpfb |
| 39 |
creates are interpolated at a low level to remove multiple master |
| 40 |
instructions from individual characters. Therefore, they can be used by |
| 41 |
programs that don't normally understand multiple master fonts, like |
| 42 |
.BR ps2pk (1). |
| 43 |
.PP |
| 44 |
.B Mmpfb |
| 45 |
supports fonts with intermediate masters, like Adobe Jenson and Kepler. It |
| 46 |
can also create AMCP (Adobe Multiple Master Conversion Program) files for |
| 47 |
use by |
| 48 |
.M mmafm 1 ; |
| 49 |
see |
| 50 |
.B \-\-amcp\-info |
| 51 |
below. |
| 52 |
.PP |
| 53 |
The |
| 54 |
.I font |
| 55 |
argument is either the name of a PFA or PFB font file, or a PostScript font |
| 56 |
name. If you give a font name, |
| 57 |
.B mmpfb |
| 58 |
will find the actual outline file using the PSRESOURCEPATH environment |
| 59 |
variable. This colon-separated path is searched for `PSres.upr' files, an |
| 60 |
Adobe method for indexing PostScript resources. |
| 61 |
.PP |
| 62 |
You can also give the name of a multiple |
| 63 |
master font instance, like `MinionMM_367_400_12_'. |
| 64 |
.B Mmpfb |
| 65 |
will parse the font name and create that instance for you. `PSres.upr' |
| 66 |
files must be set up for this to work. |
| 67 |
' |
| 68 |
' |
| 69 |
.SH EXAMPLE |
| 70 |
' |
| 71 |
.nf |
| 72 |
% mmpfb \-\-weight=400 \-\-width=600 MyriadMM.pfb > MyriadMM_400_600_.pfb |
| 73 |
.fi |
| 74 |
' |
| 75 |
.SH OPTIONS |
| 76 |
Long options may be abbreviated to their unique prefixes. |
| 77 |
' |
| 78 |
.TP 5 |
| 79 |
.Oy \-\-output file \-o file |
| 80 |
' |
| 81 |
Send output to |
| 82 |
.I file |
| 83 |
instead of standard output. |
| 84 |
' |
| 85 |
.TP |
| 86 |
.BR \-\-pfb ", " \-b |
| 87 |
' |
| 88 |
Output a PFB font. This is the default. |
| 89 |
' |
| 90 |
.TP |
| 91 |
.BR \-\-pfa ", " \-a |
| 92 |
' |
| 93 |
Output a PFA font. |
| 94 |
' |
| 95 |
.TP |
| 96 |
.Op \-\-amcp\-info |
| 97 |
' |
| 98 |
Do not create a font; instead, output an AMCP file for use by |
| 99 |
.M mmafm 1 . |
| 100 |
A message is printed if the font doesn't have intermediate masters, in |
| 101 |
which case no AMCP file is necessary. |
| 102 |
' |
| 103 |
.TP |
| 104 |
.Oy \-\-weight N \-w N |
| 105 |
' |
| 106 |
Set the weight axis to |
| 107 |
.IR N . |
| 108 |
' |
| 109 |
.TP |
| 110 |
.Oy \-\-width N \-W N |
| 111 |
' |
| 112 |
Set the width axis to |
| 113 |
.IR N . |
| 114 |
' |
| 115 |
.TP |
| 116 |
.Oy \-\-optical\-size N \-O N |
| 117 |
' |
| 118 |
Set the optical size axis to |
| 119 |
.IR N . |
| 120 |
' |
| 121 |
.TP |
| 122 |
.Ol \-\-style N |
| 123 |
' |
| 124 |
Set the style axis to |
| 125 |
.IR N . |
| 126 |
.TP |
| 127 |
\fB\-\-1\fR=\fIN\fR (\fB\-\-2\fR=\fIN\fR, \fB\-\-3\fR=\fIN\fR, \fB\-\-4\fR=\fIN\fR) |
| 128 |
' |
| 129 |
Set the first (second, third, fourth) axis to |
| 130 |
.IR N . |
| 131 |
' |
| 132 |
.TP |
| 133 |
.Oy \-\-precision N \-p N |
| 134 |
' |
| 135 |
Set the output precision to |
| 136 |
.IR N . |
| 137 |
Higher values mean the control points in the output font will be more |
| 138 |
exactly aligned; lower values (1 or 2) create smaller output font |
| 139 |
files, and are close enough for most purposes. A precision of |
| 140 |
.IR N |
| 141 |
means that each point will be within |
| 142 |
.RI 1/ N |
| 143 |
font units of the exact interpolated value. (A font unit is generally |
| 144 |
1/7200 inch for a 10-point font.) The default is 5. |
| 145 |
' |
| 146 |
.TP |
| 147 |
.Ol \-\-subrs N |
| 148 |
' |
| 149 |
Limit the output font to at most |
| 150 |
.IR N |
| 151 |
subroutines. 256 is a good value for |
| 152 |
.IR N . |
| 153 |
' |
| 154 |
.TP |
| 155 |
.BR \-\-no\-minimize |
| 156 |
' |
| 157 |
Do not minimize the output font definition. By default, |
| 158 |
.B mmpfb |
| 159 |
removes extra PostScript code and dictionary definitions from the font. |
| 160 |
Supply the |
| 161 |
.B \-\-no\-minimize |
| 162 |
option to avoid this behavior. |
| 163 |
' |
| 164 |
.SH TROUBLESHOOTING |
| 165 |
.LP |
| 166 |
The "IBM" Type 1 font interpreter shipped as part of the X font server and |
| 167 |
.B ps2pk |
| 168 |
(among others) is inappropriately strict about PostScript code embedded in |
| 169 |
a font. The |
| 170 |
.B \-\-minimize |
| 171 |
option (now the default) fixes this problem. |
| 172 |
.LP |
| 173 |
Some versions of Adobe Acrobat Distiller may report "Warning: unable to |
| 174 |
embed font X. Invalid character outline data" when distilling an instance |
| 175 |
generated by |
| 176 |
.BR mmpfb . |
| 177 |
This is due to a limitation in the number of font subroutines Distiller can |
| 178 |
accept. (Multiple master fonts, and the single-master fonts generated by |
| 179 |
.BR mmpfb , |
| 180 |
tend to have a lot of subroutines.) Try limiting the number of subroutines |
| 181 |
in the generated font with the |
| 182 |
.Op \-\-subrs |
| 183 |
option. |
| 184 |
' |
| 185 |
.SH SEE ALSO |
| 186 |
.M mmafm 1 |
| 187 |
' |
| 188 |
.SH DIAGNOSTICS |
| 189 |
.TP 5 |
| 190 |
reducing \fIfont\fR to minimum number of subroutines (\fIN\fR) |
| 191 |
You tried to reduce the number of subroutines to less than \fIN\fR using |
| 192 |
the |
| 193 |
.Op \-\-subrs |
| 194 |
option, but the font needs at least \fIN\fR to function. The output font |
| 195 |
will have \fIN\fR subroutines. |
| 196 |
' |
| 197 |
.SH AUTHOR |
| 198 |
.na |
| 199 |
Eddie Kohler, [email protected] |
| 200 |
.PP |
| 201 |
The latest version is available from: |
| 202 |
.br |
| 203 |
http://www.lcdf.org/type/ |
| 204 |
.PP |
| 205 |
Thanks to Melissa O'Neill for suggestions and patient |
| 206 |
debugging. |