man ttx (Commandes) - ttx

NAME

ttx - tool for manipulating TrueType and OpenType fonts

SYNOPSIS

[option ...]file ...

DESCRIPTION

is a tool for manipulating TrueType and OpenType fonts. It can convert TrueType and OpenType fonts to and from an XML NS -BASED FORMAT CALLED TTX . TTX files have a extension.

For each file argument it is given, detects whether it is a or file and acts accordingly: if it is a or file, it generates a file; if it is a file, it generates a or file.

By default, every output file is created in the same directory as the corresponding input file and with the same name except for the extension, which is substituted appropriately. never overwrites existing files; if neccesary, it appends a suffix to the output file name before the extension, as in Arial#1.ttf .

General options

-h
Display usage information.
-d dir
Write the output files to directory dir instead of writing every output file to the same directory as the corresponding input file.
-v
Be verbose. Write more messages to the standard output describing what is being done.

Dump options

The following options control the process of dumping font files (TrueType or OpenType) to TTX files.

-l
List table information. Instead of dumping the font to a TTX file, display minimal information about each table.
-t table
Dump table table . This option may be given multiple times to dump several tables at once. When not specified, all tables are dumped.
-x table
Exclude table table from the list of tables to dump. This option may be given multiple times to exclude several tables from the dump. The -t and -x options are mutually exclusive.
-s
Split tables. Dump each table to a separate TTX file and write (under the name that would have been used for the output file if the -s option had not been given) one small TTX file containing references to the individual table dump files. This file can be used as input to as long as the referenced files can be found in the same directory.
-i
Don't disassemble TrueType instructions. When this option is specified, all TrueType programs (glyph programs, the font program and the pre-program) are written to the TTX file as hexadecimal data instead of assembly. This saves some time and results in smaller TTX files.

Compilation options

The following options control the process of compiling TTX files into font files (TrueType or OpenType):

-m fontfile
Merge the input TTX file file with fontfile . No more than one file argument can be specified when this option is used.
-b
Don't recalculate glyph bounding boxes. Use the values in the TTX file as is.

THE TTX FILE FORMAT

You can find some information about the TTX file format in /usr/share/doc/fonttools/documentation.html on Debian systems. In particular, you will find in that file the list of tables understood by and the relations between TrueType GlyphIDs and the glyph names used in TTX files.

EXAMPLES

In the following examples, all files are read from and written to the current directory. Additionally, the name given for the output file assumes in every case that it did not exist before was invoked.

Dump the TrueType font contained in FreeSans.ttf to FreeSans.ttx :

Compile MyFont.ttx into a TrueType or OpenType font file:

List the tables in FreeSans.ttf along with some information:

Dump the table from FreeSans.ttf to FreeSans.ttx :

NOTES

This manual page is not the autoritative documentation for . It is hoped that it will be useful to you but you should consult other sources for autoritative information. The ones I am aware of are the output of and the /usr/share/doc/fonttools/documentation.html file on Debian systems.

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

SEE ALSO

/usr/share/doc/fonttools/documentation.html

fontforge(1) , ftinfo(1) , gfontview(1) , xmbdfed()

The libfont-ttf-perl Debian package might also be of interest. To list its manual pages, you can install it and run the following command:

AUTHORS

was written by -nosplit Just van Rossum Aq just@letterror.com .

This manual page was written by Florent Rougon Aq f.rougon@free.fr for the Debian GNU/Linux system based on the existing FontTools documentation. It may be freely used, modified and distributed without restrictions. Any mistakes or omissions in this manual page are my fault; inquiries about or corrections to this manual page should be directed to me or to the Debian Bug Tracking System, at least as long as this manual page is not included in the upstream distribution of the FontTools.