1TTX(1)                    BSD General Commands Manual                   TTX(1)
2

NAME

4     ttx — tool for manipulating TrueType and OpenType fonts
5

SYNOPSIS

7     ttx [option ...] file ...
8

DESCRIPTION

10     ttx is a tool for manipulating TrueType and OpenType fonts.  It can con‐
11     vert TrueType and OpenType fonts to and from an XML-based format called
12     TTX.  TTX files have a ‘.ttx’ extension.
13
14     For each file argument it is given, ttx detects whether it is a ‘.ttf’,
15     ‘.otf’ or ‘.ttx’ file and acts accordingly: if it is a ‘.ttf’ or ‘.otf’
16     file, it generates a ‘.ttx’ file; if it is a ‘.ttx’ file, it generates a
17     ‘.ttf’ or ‘.otf’ file.
18
19     By default, every output file is created in the same directory as the
20     corresponding input file and with the same name except for the extension,
21     which is substituted appropriately.  ttx never overwrites existing files;
22     if neccesary, it appends a suffix to the output file name before the
23     extension, as in Arial#1.ttf.
24
25   General options
26     -h        Display usage information.
27
28     -d dir    Write the output files to directory dir instead of writing
29               every output file to the same directory as the corresponding
30               input file.
31
32     -v        Be verbose.  Write more messages to the standard output
33               describing what is being done.
34
35     -a        Allow virtual glyphs ID's on compile or decompile.
36
37   Dump options
38     The following options control the process of dumping font files (TrueType
39     or OpenType) to TTX files.
40
41     -l        List table information.  Instead of dumping the font to a TTX
42               file, display minimal information about each table.
43
44     -t table  Dump table table.  This option may be given multiple times to
45               dump several tables at once.  When not specified, all tables
46               are dumped.
47
48     -x table  Exclude table table from the list of tables to dump.  This
49               option may be given multiple times to exclude several tables
50               from the dump.  The -t and -x options are mutually exclusive.
51
52     -s        Split tables.  Dump each table to a separate TTX file and write
53               (under the name that would have been used for the output file
54               if the -s option had not been given) one small TTX file con‐
55               taining references to the individual table dump files.  This
56               file can be used as input to ttx as long as the referenced
57               files can be found in the same directory.
58
59     -i        Don't disassemble TrueType instructions.  When this option is
60               specified, all TrueType programs (glyph programs, the font pro‐
61               gram and the pre-program) are written to the TTX file as hexa‐
62               decimal data instead of assembly.  This saves some time and
63               results in smaller TTX files.
64
65     -y n      When decompiling a TrueType Collection (TTC) file, decompile
66               font number n, starting from 0.
67
68   Compilation options
69     The following options control the process of compiling TTX files into
70     font files (TrueType or OpenType):
71
72     -m fontfile
73               Merge the input TTX file file with fontfile.  No more than one
74               file argument can be specified when this option is used.
75
76     -b        Don't recalculate glyph bounding boxes.  Use the values in the
77               TTX file as is.
78

THE TTX FILE FORMAT

80     You can find some information about the TTX file format in
81     documentation.html.  In particular, you will find in that file the list
82     of tables understood by ttx and the relations between TrueType GlyphIDs
83     and the glyph names used in TTX files.
84

EXAMPLES

86     In the following examples, all files are read from and written to the
87     current directory.  Additionally, the name given for the output file
88     assumes in every case that it did not exist before ttx was invoked.
89
90     Dump the TrueType font contained in FreeSans.ttf to FreeSans.ttx:
91
92           ttx FreeSans.ttf
93
94     Compile MyFont.ttx into a TrueType or OpenType font file:
95
96           ttx MyFont.ttx
97
98     List the tables in FreeSans.ttf along with some information:
99
100           ttx -l FreeSans.ttf
101
102     Dump the ‘cmap’ table from FreeSans.ttf to FreeSans.ttx:
103
104           ttx -t cmap FreeSans.ttf
105

NOTES

107     On MS-Windows and MacOS, ttx is available as a graphical application to
108     which files can be dropped.
109

SEE ALSO

111     documentation.html
112
113     fontforge(1), ftinfo(1), gfontview(1), xmbdfed(1), Font::TTF(3pm)
114

AUTHORS

116     ttx was written by Just van Rossum <just@letterror.com>.
117
118     This manual page was written by Florent Rougon <f.rougon@free.fr> for the
119     Debian GNU/Linux system based on the existing FontTools documentation.
120     It may be freely used, modified and distributed without restrictions.
121
122                                 May 18, 2004
Impressum