TTX(1)
πΈ NAME πΈ
ttx β bestie's fave little tool for manipulating TrueType and OpenType fonts π
β¨ SYNOPSIS β¨
ttx [option ...] file ...
π¦ DESCRIPTION π¦
okay so. 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. no cap. π
For each file argument it is given, ttx detects whether it is a .ttf, .otf or .ttx file and acts accordingly: if it's a .ttf or .otf file, it generates a .ttx file; if it's a .ttx file, it generates a .ttf or .otf file. it just knows. main character energy fr fr π
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. so polite. so respectful of your files. π«Ά
π General options π
-hβ Display usage information. little help menu moment β¨-ddir β Write the output files to directory dir instead of writing every output file to the same directory as the corresponding input file. basically "put it over there please" π-ofile β 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. she's yapping (affectionate) π£οΈπ-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. this is the "font goes OUT" direction, iykyk π§
-lβ List table information. Instead of dumping the font to a TTX file, display minimal information about each table. just the receipts, not the whole story π-ttable β Dump table table. This option may be given multiple times to dump several tables at once. When not specified, all tables are dumped. pick your faves bestie β-xtable β 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-tand-xoptions are mutually exclusive β you literally cannot have both, it's giving toxic situationship π-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-soption had not been given) one small TTX file containing references to the individual table dump files. This file can be used as input tottxas long as the referenced files can be found in the same directory. it's a whole friend group of files π-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. lowkey efficient π₯-yn β 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). and now the "font comes BACK" direction π¦
-mfontfile β Merge the input TTX file file with fontfile. No more than one file argument can be specified when this option is used. one at a time, bestie, one at a time β-bβ Don't recalculate glyph bounding boxes. Use the values in the TTX file as is. trust the process, leave it alone π
π 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. go read it, it's giving required reading πβ¨
π 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. drag and drop queen π
π SEE ALSO π
documentation.htmlfontforge(1),ftinfo(1),gfontview(1),xmbdfed(1),Font::TTF(3pm)
π AUTHORS π
ttx was written by Just van Rossum <just@letterror.com>. icon behavior tbh β
This manual page was written by Florent Rougon <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. slay, no restrictions, free to use π π«Ά
and that's the whole page bestie!! this is the LOCAL TTX(1) page, dated May 18, 2004 β yes she's vintage, she's an elder, and she still ate πΈβ¨ go dump some fonts, ily, bye!! π
π¦ where this page comes from
- alpine 3.24: py3-fonttools-doc 4.60.1-r1 Β· MIT AND OFL-1.1
- arch rolling: python-fonttools 4.68.0-1 Β· MIT
- debian bookworm: fonttools 4.38.0-1+deb12u1 Β· MIT
- debian trixie: fonttools 4.57.0-1+deb13u1 Β· MIT
- epel 10: fonttools 4.61.0-2.el10_2 Β· MIT
- epel 9: fonttools 4.38.0-2.el9 Β· MIT
- fedora 43: fonttools 4.60.0-2.fc43 Β· MIT
- fedora 43: fonttools 4.61.0-1.fc43 Β· MIT
- fedora 44: fonttools 4.61.1-2.fc44 Β· MIT
- fedora 44: fonttools 4.62.1-1.fc44 Β· MIT
- nixos 26.05: python3.13-fonttools 4.61.1
- nixos 26.05: python3.14-fonttools 4.61.1
- nixpkgs unstable: python3.13-fonttools 4.63.0
- nixpkgs unstable: python3.14-fonttools 4.63.0
- ubuntu jammy: fonttools 4.29.1-2build1 Β· MIT
- ubuntu noble: fonttools 4.46.0-1build2 Β· MIT
- ubuntu questing: fonttools 4.55.3-2build1
- ubuntu questing: fonttools 4.55.3-2ubuntu0.25.10.1
- ubuntu resolute: fonttools 4.61.1-3build1 Β· MIT
- ubuntu stonking: fonttools 4.62.1-7 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms