Debian Codegraph @

texk/lcdf-typetools/lcdf-typetools-src/README.md

raw symbols SCIP
1 LCDF Typetools
2 ==============
3
4 LCDF Typetools comprises several programs for manipulating PostScript
5 Type 1, Type 1 Multiple Master, OpenType, and TrueType fonts.
6
7 **cfftot1** translates a Compact Font Format (CFF) font, or a
8 PostScript-flavored OpenType font, into PostScript Type 1 format. It
9 correctly handles subroutines and hints.
10
11 **mmafm** creates an AFM file (font metrics) corresponding to an instance of
12 a Type 1 Multiple Master font. It reads the AMFM and AFM files distributed
13 with the font.
14
15 **mmpfb** creates a normal, single-master font program which looks like an
16 instance of a Type 1 Multiple Master font. It reads the multiple master font
17 program in PFA or PFB format.
18
19 **otfinfo** reports information about OpenType and TrueType fonts, such as
20 the OpenType features and Unicode code points they support, or the contents
21 of their `size` optical size features.
22
23 **otftotfm** creates TeX font metrics and encodings that correspond to an
24 OpenType or TrueType font. It interprets glyph positionings, substitutions,
25 and ligatures as far as it is able. You can say which OpenType features
26 should be activated.
27
28 **t1dotlessj** reads a Type 1 font, then creates a new Type 1 font whose
29 only character is a dotless lower-case j matching the input font’s design.
30
31 **t1lint** checks Type 1 fonts for correctness. It tests most of the
32 requirements listed in Adobe Systems’ Black Book (“Adobe Type 1 Font
33 Format”), and some others.
34
35 **t1rawafm** creates an AFM font metrics file corresponding to a raw Type 1
36 font file (in PFA or PFB format).
37
38 **t1reencode** reencodes a Type 1 font, replacing its internal encoding with
39 one you specify.
40
41 **t1testpage** creates PostScript test pages for a given Type 1 font. These
42 pages show every character defined in the font.
43
44 **ttftotype42** creates a Type 42 wrapper for a TrueType or
45 TrueType-flavored OpenType font. This allows the font to be embedded in a
46 PostScript file.
47
48 Each of these programs has a manual page; `man PROGRAMNAME/PROGRAMNAME.1`
49 for more information.
50
51 See `NEWS` in this directory for changes in recent versions. The LCDF
52 Typetools home page is:
53
54 http://www.lcdf.org/type/
55
56
57 Installation
58 ------------
59
60 Type `./configure`, then `make`.
61
62 If `./configure` does not exist (you downloaded from Github), run
63 `./bootstrap.sh` first.
64
65 `./configure` accepts the usual options; see `INSTALL` for details.
66 Some of the typetools programs can link with additional libraries. Otftotfm
67 can use the Kpathsea library for integration with TeX directories; if your
68 version of this library is in a nonstandard place, supply `./configure` with
69 the `--with-kpathsea=PREFIX` option to find it.
70
71 You can also disable individual programs by supplying `./configure` with
72 `--disable-PROGNAME` options. See `./configure --help` for more
73 information.
74
75
76 Mmafm and mmpfb
77 ---------------
78
79 Run `mmafm --help` and `mmpfb --help` for a full option summary. Here are
80 two example runs:
81
82 % mmafm MyriadMM.amfm --weight=300 --width=585 > MyriadMM_300_585_.afm
83 % mmpfb MyriadMM.pfb --weight=300 --width=585 > MyriadMM_300_585_.pfb
84
85 Mmafm expects the name of an AMFM file on the command line. It also needs
86 an AFM file for each master (these should have been distributed with the
87 AMFM file). You can give the AFM files’ names on the command line, along
88 with the AMFM file, or you let mmafm find the AFM files automatically. For
89 the automatic method, you must follow one of these 2 conventions:
90
91 1. The AFM files are in the same directory as the AMFM file. They are
92 named `FONTNAME.afm` -- `MyriadMM-LightCn.afm`, for example.
93
94 2. There is a `PSres.upr` file that lists the AFMs by font name, and the
95 `PSRESOURCEPATH` environment variable contains the directory with that
96 `PSres.upr` file. (`ps2pk` comes with a sample `PSres.upr` file.)
97
98
99 Copyright and license
100 ---------------------
101
102 All source code is Copyright (c) 1997-2023 Eddie Kohler.
103
104 This code is distributed under the GNU General Public License, Version 2
105 (and only Version 2). The GNU General Public License is available via the
106 Web at <http://www.gnu.org/licenses/gpl.html>, or in the COPYING file in
107 this directory.
108
109
110 Author
111 ------
112
113 Eddie Kohler <[email protected]>, http://www.lcdf.org/
114
115 The current version of the lcdf-typetools package is available on the Web at
116 http://www.lcdf.org/type/
117
118 LCDF stands for Little Cambridgeport Design Factory.