Font Tools

fontTools – library to manipulate font files from Python

fontTools is a library for manipulating fonts, written in Python. It’s an indispensable tool for font developers and font tool developers who need to deal with the finer details of TrueType and OpenType fonts, or anyone needing to create or process fonts beyond font editor capabilities.

The project includes the TTX tool, that can convert TrueType and OpenType fonts to and from an XML text format, which is also called TTX. It supports TrueType, OpenType, AFM and to an extent Type 1 and some Mac-specific formats.

The software is released under an open source license.

Features include:

  • TTX — From OpenType To XML And Back. This tool lets users convert binary font files (.otf, .ttf, etc) to the TTX XML format, edit them, and convert them back to binary format:
    • If an input file is a TrueType or OpenType font file, it will be decompiled to a TTX file (an XML-based text format).
    • If an input file is a TTX file, it will be compiled to whatever  format the data is in, a TrueType or OpenType/CFF font file.
    • Option to allow virtual glyphs ID’s on compile or decompile.
    • Split tables – save the TTX data into separate TTX files per table and write one small TTX file that contains references to the individual table dumps. This file can be used as input to ttx, as long as the table files are in the same directory.
    • Split glyf table: Save the glyf data into separate TTX files per glyph and write a small TTX for the glyf table which contains references to the individual TTGlyph elements.
    • Specify the folder where the output files are created.
    • Specify which tables to dump or which tables to exclude.
    • Merge partial .ttx files with existing .ttf or .otf files.
    • List brief table info instead of dumping to .ttx.
    • Split tables to separate .ttx files.
    • Disable TrueType instruction disassembly.
    • Supports the following tables: BASE, CBDT, CBLC, CFF, CFF2, COLR, CPAL, DSIG, EBDT, EBLC, FFTM, Feat, GDEF, GMAP, GPKG, GPOS, GSUB, Glat, Gloc, HVAR, JSTF, LTSH, MATH, META, MVAR, OS/2, SING, STAT, SVG, Silf, Sill, TSI0, TSI1, TSI2, TSI3, TSI5, TSIB, TSID, TSIJ, TSIP, TSIS, TSIV, TTFA, VDMX, VORG, VVAR, ankr, avar, bsln, cidg, cmap, cvar, cvt, feat, fpgm, fvar, gasp, gcid, glyf, gvar, hdmx, head, hhea, hmtx, kern, lcar, loca, ltag, maxp, meta, mort, morx, name, opbd, post, prep, prop, sbix, trak, vhea, and vmtx.
  • Other tools:
    • pyftinspect – inspect fonts.
    • pyftmerge – merge fonts.
    • pyftsubset – subset fonts.

FontTools requires Python 2.7, 3.4 or later.

Website: github.com/fonttools/fonttools
Support: Forum
Developer: Many contributors
License: MIT License

fontTools is written in Python. Learn Python with our recommended free books and free tutorials.

Return to Font Tools | Return to Font Editors


Popular series
Free and Open Source SoftwareThe largest compilation of the best free and open source software in the universe. Each article is supplied with a legendary ratings chart helping you to make informed decisions.
ReviewsHundreds of in-depth reviews offering our unbiased and expert opinion on software. We offer helpful and impartial information.
Alternatives to Proprietary SoftwareReplace proprietary software with open source alternatives: Google, Microsoft, Apple, Adobe, IBM, Autodesk, Oracle, Atlassian, Corel, Cisco, Intuit, and SAS.
GamesAwesome Free Linux Games Tools showcases a series of tools that making gaming on Linux a more pleasurable experience. This is a new series.
Artificial intelligence iconMachine Learning explores practical applications of machine learning and deep learning from a Linux perspective. We've written reviews of more than 40 self-hosted apps. All are free and open source.
Guide to LinuxNew to Linux? Read our Linux for Starters series. We start right at the basics and teach you everything you need to know to get started with Linux.
Alternatives to popular CLI tools showcases essential tools that are modern replacements for core Linux utilities.
System ToolsEssential Linux system tools focuses on small, indispensable utilities, useful for system administrators as well as regular users.
ProductivityLinux utilities to maximise your productivity. Small, indispensable tools, useful for anyone running a Linux machine.
AudioSurveys popular streaming services from a Linux perspective: Amazon Music Unlimited, Myuzi, Spotify, Deezer, Tidal.
Saving Money with LinuxSaving Money with Linux looks at how you can reduce your energy bills running Linux.
Home ComputersHome computers became commonplace in the 1980s. Emulate home computers including the Commodore 64, Amiga, Atari ST, ZX81, Amstrad CPC, and ZX Spectrum.
Now and ThenNow and Then examines how promising open source software fared over the years. It can be a bumpy ride.
Linux at HomeLinux at Home looks at a range of home activities where Linux can play its part, making the most of our time at home, keeping active and engaged.
Linux CandyLinux Candy reveals the lighter side of Linux. Have some fun and escape from the daily drudgery.
DockerGetting Started with Docker helps you master Docker, a set of platform as a service products that delivers software in packages called containers.
Android AppsBest Free Android Apps. We showcase free Android apps that are definitely worth downloading. There's a strict eligibility criteria for inclusion in this series.
Programming BooksThese best free books accelerate your learning of every programming language. Learn a new language today!
Programming TutorialsThese free tutorials offer the perfect tonic to our free programming books series.
Linux Around The WorldLinux Around The World showcases usergroups that are relevant to Linux enthusiasts. Great ways to meet up with fellow enthusiasts.
Stars and StripesStars and Stripes is an occasional series looking at the impact of Linux in the USA.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments