fontTools is a collection of libraries and command-line utilities for inspecting, manipulating and generating font files. It provides access to the internal structures of TrueType and OpenType fonts, making it useful for font developers, type designers and programmers building font processing tools.
The project includes TTX, which converts binary font data into an editable XML representation and compiles the modified data back into a font file. This gives developers direct access to font tables that conventional graphical editors may not expose.
fontTools extends well beyond XML conversion. Its modules support font subsetting, merging, outline conversion, OpenType feature compilation and variable font generation. Developers can use these facilities through command-line utilities or incorporate them directly into their own applications.
The library is widely used as a foundation for other font engineering tools, providing reusable components for working with glyph outlines, font metadata, shaping information and variation data.
This is free and open source software.
Key Features
- Read, inspect and manipulate TrueType and OpenType font files.
- Convert binary fonts to and from TTX XML format.
- Inspect, edit and rebuild individual font tables.
- Limit TTX operations to selected tables or exclude unwanted tables.
- Split font tables into separate XML files.
- Merge partial TTX files with existing fonts.
- Subset fonts using selected glyphs, characters or Unicode ranges.
- Merge multiple fonts into a single font.
- Compile OpenType layout features from feature files.
- Generate variable fonts from masters and designspace definitions.
- Instantiate variable fonts at selected axis locations.
- Convert cubic outlines to quadratic curves using cu2qu.
- Manipulate CFF and CFF2 outlines.
- Process colour font tables including COLR and CPAL.
- Support font variation tables including fvar, gvar, avar and STAT.
- Provide utilities for converting Microsoft VOLT data into feature files.
- Offer reusable APIs for font processing applications and scripts.
Website: github.com/fonttools/fonttools
Support:
Developer: Many contributors
License: MIT License
fontTools is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Font Editors | |
|---|---|
| FontForge | Create and modify postscript, truetype and opentype fonts |
| fontTools | Library to manipulate font files from Python |
| Birdfont | Vala based font editor |
| Glyphr Studio | Aimed at typeface design beginners and hobbyists |
| Fontra | Browser-based font editor |
| ftcli | Command line interface built with click to edit fonts using fontTools |
| Ygt | Graphical TypeType hinting program |
| Slice | Create custom font design spaces |
| TruFont | Streamlined and hackable font editor |
| monobit | Collection of tools for working with bitmap fonts |
| Modular Font Editor K | Glyph editor for the Modular Font Editor K project |
| bited | Bitmap font editor for monochrome Unicode BDF fonts |
Read our verdict in the software roundup.
| Font Renderers | |
|---|---|
| HarfBuzz | OpenType text shaping engine |
| FreeType | Small and efficient software font engine |
| Pango | International text layout and rendering with rich script support |
| LibICU | Libraries for Unicode and internationalization |
| Fontconfig | Library for configuring and customizing font access |
| COSMIC Text | Rust library for rich multi-line text layout, shaping and editing |
| FriBidi | Implementation of the Unicode Bidirectional Algorithm |
| Swash | Pure Rust toolkit for glyph shaping, scaling and rendering |
| SheenBidi | Compact Unicode bidirectional algorithm implementation for text engines |
| Raqm | Bidirectional layout and shaping for complex writing systems |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.