| single |
|CI Build Status| |Coverage Status| |PyPI| |Gitter Chat|
What is this?
~~~~~~~~~~~~~
| fontTools is a library for manipulating fonts, written in Python. 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 project has an `MIT open-source
license `__.
| Among other things this means you can use it free of charge.
[User documentation] and
[developer documentation]
are available at [Read the Docs].
Installation
~~~~~~~~~~~~
FontTools requires [Python] 3.11
or later. We try to support the Python versions that are still supported
upstream
(see [Status of Python versions]).
The package is listed in the Python Package Index (PyPI), so you can
install it with [pip]:
Changelog
~~~~~~~~~
4.69.1 (released 2026-11-25)
----------------------------
- Re-release of 4.69.0 with complete PyPI provenance. Uploading 4.69.0 hit
PyPI's project
size limit, so most of its files had to be uploaded by hand without
attestations.
No code changes (#4461).
4.69.0 (released 2026-11-25)
----------------------------
- [svgPathPen] Add opt-in precision parameter to SVGPathPen (and
``--precision`` CLI option, defaulting to 2 decimal places) for rounded,
compact
numbers (#3547, #4358).
- [subset] Add ``--retain-all-variation-sequences`` option to retain all
Unicode
variation sequences for selected base codepoints without listing
selectors explicitly
(#3865, #4353).
- [merge] Print usage and exit cleanly for ``pyftmerge --help`` / ``-h``
(#524, #4356).
- [cmap] Reject format 2 subtables where a byte is used as both a
single-byte code and
a two-byte lead byte instead of silently dropping mappings (#1524,
#4324).
- [glyf] Round component XY offsets when calculating glyph bounds so
instanced bounds
match the compiled table (#3795, #4374).
- [feaLib/otlLib] Preserve the given contour point order for
LigatureCaretByIndex
rules instead of sorting point indices (#3608, #4357).
- [otlLib] Fix shadowed class-pair kerning rules in
ClassPairPosSubtableBuilder by
partitioning overlapping first-glyph classes while preserving pair
iteration order
(#2793, #4381).
- [varLib.iup] Validate IUP optimization both before and after rounding
coordinates and
explicit deltas (#3636, #4382).
- [otlLib] Balance SingleSubst subtable splitting by total lookup size
times
subtable count (#3259, #4383).
- [varLib.interpolatable] Handle sparse Designspace sources (separate UFOs
or named
layers) without spurious missing-glyph errors (#4385, #4386).
- [cffLib] Reconnect ``CharStrings.varStore after importing a variable CFF2
font from
TTX so getGlyphSet(location=...)`` renders variations (#4387, #4388).
- [misc.filesystem] Fall back to copying over the target in
``WriteZipFS.close() when
os.replace() raises PermissionError`` on Windows, fixing saving ``.ufoz``
files
already open for reading (#4391, #4392).
- [cffLib] Speed up subroutine renumbering by avoiding repeated linear
index searches
(#4390).
- [setup.py] Force Cython regeneration on free-threaded Python builds so
published
cp313t/cp314t wheels do not re-enable the GIL on import (#4393, #4394).
- [unicodedata] Generate ``Mirrored.py bidi mirroring data via
MetaTools/buildUCD.py`` (#3810, #4399).
- [subset] Map Device variation indices whose delta sets are missing from
GDEF
VarStore to NO_VARIATION_INDEX (#4396).
- [cffLib] Fix 4.68.0 regressions in CFF2ToCFF (load FDSelect before
dropping
the CFF2 glyph order, #4401) and CFFToCFF2 (load glyph order before
|