File: README.md

package info (click to toggle)
lcdf-typetools 2.106~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,116 kB
  • ctags: 4,799
  • sloc: cpp: 35,136; ansic: 1,861; sh: 1,254; makefile: 264
file content (118 lines) | stat: -rw-r--r-- 4,352 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
LCDF Typetools
==============

LCDF Typetools comprises several programs for manipulating PostScript
Type 1, Type 1 Multiple Master, OpenType, and TrueType fonts.

**cfftot1** translates a Compact Font Format (CFF) font, or a
PostScript-flavored OpenType font, into PostScript Type 1 format. It
correctly handles subroutines and hints.

**mmafm** creates an AFM file (font metrics) corresponding to an instance of
a Type 1 Multiple Master font. It reads the AMFM and AFM files distributed
with the font.

**mmpfb** creates a normal, single-master font program which looks like an
instance of a Type 1 Multiple Master font. It reads the multiple master font
program in PFA or PFB format.

**otfinfo** reports information about OpenType and TrueType fonts, such as
the OpenType features and Unicode code points they support, or the contents
of their `size` optical size features.

**otftotfm** creates TeX font metrics and encodings that correspond to an
OpenType or TrueType font. It interprets glyph positionings, substitutions,
and ligatures as far as it is able. You can say which OpenType features
should be activated.

**t1dotlessj** reads a Type 1 font, then creates a new Type 1 font whose
only character is a dotless lower-case j matching the input font’s design.

**t1lint** checks Type 1 fonts for correctness. It tests most of the
requirements listed in Adobe Systems’ Black Book (“Adobe Type 1 Font
Format”), and some others.

**t1rawafm** creates an AFM font metrics file corresponding to a raw Type 1
font file (in PFA or PFB format).

**t1reencode** reencodes a Type 1 font, replacing its internal encoding with
one you specify.

**t1testpage** creates PostScript test pages for a given Type 1 font. These
pages show every character defined in the font.

**ttftotype42** creates a Type 42 wrapper for a TrueType or
TrueType-flavored OpenType font. This allows the font to be embedded in a
PostScript file.

Each of these programs has a manual page; `man PROGRAMNAME/PROGRAMNAME.1`
for more information.

See `NEWS` in this directory for changes in recent versions. The LCDF
Typetools home page is:

http://www.lcdf.org/type/


Installation
------------

Type `./configure`, then `make`.

If `./configure` does not exist (you downloaded from Github), run
`./bootstrap.sh` first.

`./configure` accepts the usual options; see `INSTALL` for details.
Some of the typetools programs can link with additional libraries. Otftotfm
can use the Kpathsea library for integration with TeX directories; if your
version of this library is in a nonstandard place, supply `./configure` with
the `--with-kpathsea=PREFIX` option to find it.

You can also disable individual programs by supplying `./configure` with
`--disable-PROGNAME` options.  See `./configure --help` for more
information.


Mmafm and mmpfb
---------------

Run `mmafm --help` and `mmpfb --help` for a full option summary. Here are
two example runs:

    % mmafm MyriadMM.amfm --weight=300 --width=585 > MyriadMM_300_585_.afm
    % mmpfb MyriadMM.pfb --weight=300 --width=585 > MyriadMM_300_585_.pfb

Mmafm expects the name of an AMFM file on the command line. It also needs
an AFM file for each master (these should have been distributed with the
AMFM file). You can give the AFM files’ names on the command line, along
with the AMFM file, or you let mmafm find the AFM files automatically. For
the automatic method, you must follow one of these 2 conventions:

1. The AFM files are in the same directory as the AMFM file. They are
named `FONTNAME.afm` -- `MyriadMM-LightCn.afm`, for example.

2. There is a `PSres.upr` file that lists the AFMs by font name, and the
`PSRESOURCEPATH` environment variable contains the directory with that
`PSres.upr` file. (`ps2pk` comes with a sample `PSres.upr` file.)


Copyright and license
---------------------

All source code is Copyright (c) 1997-2016 Eddie Kohler.

This code is distributed under the GNU General Public License, Version 2
(and only Version 2). The GNU General Public License is available via the
Web at <http://www.gnu.org/licenses/gpl.html>, or in the COPYING file in
this directory.


Author
------

Eddie Kohler <ekohler@gmail.com>, http://www.lcdf.org/

The current version of the lcdf-typetools package is available on the Web at
http://www.lcdf.org/type/

LCDF stands for Little Cambridgeport Design Factory.