A library to manipulate font files from Python.
fontTools is a Python library for manipulating font files, supporting TrueType, OpenType, AFM, Type 1, and some Mac-specific formats. The project includes the TTX tool, which converts fonts to and from an XML text format. Built in Python and requiring Python 3.10 or later, fontTools has no required external dependencies beyond the Python Standard Library, though it offers optional features via extras like WOFF compression, UFO support, and variable font analysis that can be unlocked by installing additional packages such as brotli, lxml, scipy, and matplotlib.