1MMAFM(1) General Commands Manual MMAFM(1)
2
3
4
6 mmafm - creates AFM font metrics for multiple master fonts
7
9 mmafm [OPTIONS...] font
10
12 Mmafm creates AFM font metrics for PostScript multiple master fonts by
13 interpolation. You pass it an AMFM file (multiple master font metrics)
14 and options specifying the design point you want, and it writes the
15 resulting AFM file to the standard output.
16
17 Each font argument is either the filename of an AFM or AMFM font met‐
18 rics file, or a PostScript font name. If you give a font name, mmafm
19 will look up the actual font metrics file using the PSRESOURCEPATH
20 environment variable. This colon-separated path is searched for
21 `PSres.upr' files, an Adobe method for indexing PostScript resources.
22
23 You can also give the name of a multiple master font instance, like
24 `MinionMM_367_400_12_'. Mmafm will parse the font name and create that
25 instance for you. `PSres.upr' files must be set up for this to work.
26
27 Any multiple master font should be distributed with a single AMFM file
28 and several AFM files (one for each master). For Myriad, for example,
29 the AMFM file is MyriadMM.amfm and the AFM files are MyriadMM-
30 LightCn.afm, MyriadMM-LightSemiEx.afm, MyriadMM-BlackCn.afm, and Myri‐
31 adMM-BlackSemiEx.afm. Mmafm needs to find all these files to function.
32 For fonts in the Adobe type library, you can download the necessary
33 files from <http://www.lcdf.org/type>; look for the mm-metrics package.
34
35 You must always supply the AMFM file (or its font name) on the command
36 line, but mmafm will look for any required AFM files you don't supply
37 yourself. It tries the PSRESOURCEPATH environment variable, and also
38 looks for files named `FontName.afm' or `FontName.AFM' in the directory
39 that contained the AMFM file. (The Myriad filenames given above fit
40 this pattern.)
41
42 Mmafm supports fonts with intermediate masters, like Adobe Jenson and
43 Kepler. If your PSRESOURCEPATH environment variable is set up, it will
44 handle these fonts automatically. Otherwise, you must first run `mmpfb
45 --amcp-info' on the font outline files to create auxiliary AMCP files
46 for these fonts. Each AMCP file should be in the same directory as its
47 corresponding AMFM file and should have the same root filename, but
48 with a `.amcp' extension instead of `.amfm'. See mmpfb(1) for more
49 information.
50
52 % mmafm --weight=400 --width=600 MyriadMM.amfm > MyriadMM_400_600_.afm
53
55 Long options may be abbreviated to their unique prefixes.
56
57 --output=file, -o file
58 Send output to file instead of standard output.
59
60 --weight=N, -w N
61 Set the weight axis to N.
62
63 --width=N, -W N
64 Set the width axis to N.
65
66 --optical-size=N, -O N
67 Set the optical size axis to N.
68
69 --style=N
70 Set the style axis to N.
71
72 --1=N (--2=N, --3=N, --4=N)
73 Set the first (second, third, fourth) axis to N.
74
75 --precision=N, -p N
76 Round output numbers so they have at most N digits after the deci‐
77 mal point. Smaller numbers are less precise; `-p 0' rounds all
78 numbers to integers. The default precision is 3.
79
80 --min-kern=N, -k N
81 Only output kerning pairs whose absolute value is N or larger.
82 Smaller minimum kerns make kerning more precise and the output AFM
83 file bigger. The default minimum kern is 2.0.
84
86 Some programs, such as TeX's fontinst, can choke on AFM files that
87 include fractional numbers. Therefore, if you have trouble with an AFM
88 file, try rerunning mmafm with the --precision=0 option.
89
91 mmpfb(1)
92
94 Font requires intermediate master conversion programs
95 You haven't yet created an AMCP file for Font.
96
98 Eddie Kohler, ekohler@gmail.com
99
100 The latest version is available from:
101 http://www.lcdf.org/type/
102 AMFM and AFM files for Adobe Type Library fonts are also available at
103 that URL.
104
105 Thanks to Melissa O'Neill for suggestions and patient debugging.
106
107
108
109Version 2.107 LCDF Typetools MMAFM(1)