EnglishFrenchSpanish

OnWorks favicon

ttx - Online in the Cloud

Run ttx in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ttx that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


ttx — tool for manipulating TrueType and OpenType fonts

SYNOPSIS


ttx [option ...] file ...

DESCRIPTION


ttx is a tool for manipulating TrueType and OpenType fonts. It can convert TrueType and
OpenType fonts to and from an XML-based format called TTX. TTX files have a ‘.ttx’
extension.

For each file argument it is given, ttx detects whether it is a ‘.ttf’, ‘.otf’ or ‘.ttx’
file and acts accordingly: if it is a ‘.ttf’ or ‘.otf’ file, it generates a ‘.ttx’ file; if
it is a ‘.ttx’ file, it generates a ‘.ttf’ or ‘.otf’ 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.
ttx never overwrites existing files; if necessary, 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.

-o file Write the output to file instead of writing it to the same directory as the
corresponding input file.

-v Be verbose. Write more messages to the standard output describing what is being
done.

-a Allow virtual glyphs ID's on compile or decompile.

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 ttx 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.

-y n When decompiling a TrueType Collection (TTC) file, decompile font number n,
starting from 0.

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 documentation.html. In
particular, you will find in that file the list of tables understood by ttx 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 ttx was invoked.

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

ttx FreeSans.ttf

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

ttx MyFont.ttx

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

ttx -l FreeSans.ttf

Dump the ‘cmap’ table from FreeSans.ttf to FreeSans.ttx:

ttx -t cmap FreeSans.ttf

NOTES


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

Use ttx online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    PostInstallerF
    PostInstallerF
    PostInstallerF will install all the
    software that Fedora Linux and others
    doesn't include by default, after
    running Fedora for the first time. Its
    easy for...
    Download PostInstallerF
  • 2
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 3
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 4
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 5
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 6
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • More »

Linux commands

Ad