# fonttools Python Font Manipulation and Subsetting Library

> fonttools is a comprehensive Python library for manipulating font files, including TrueType, OpenType, WOFF, and WOFF2 formats. It includes the TTX tool for converting fonts to and from XML, a font subsetting utility for reducing font file sizes, and APIs for inspecting, modifying, and generating font files programmatically.

- Skill: `agentskillexchange/fonttools-python-font-manipulation-and-subsetting-library` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/fonttools-python-font-manipulation-and-subsetting-library`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/fonttools-python-font-manipulation-and-subsetting-library/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/fonttools-python-font-manipulation-and-subsetting-library

---


# fonttools Python Font Manipulation and Subsetting Library

fonttools is a comprehensive Python library for manipulating font files, including TrueType, OpenType, WOFF, and WOFF2 formats. It includes the TTX tool for converting fonts to and from XML, a font subsetting utility for reducing font file sizes, and APIs for inspecting, modifying, and generating font files programmatically.

## Installation

Use the upstream install or setup path that matches your environment:
- pip install fonttools
- git clone https://github.com/fonttools/fonttools.git
- pip install -e .
- pip install fonttools[ufo,lxml,woff,unicode]

Requirements and caveats from upstream:
- | fontTools is a library for manipulating fonts, written in Python. The
- FontTools requires Python <http://www.python.org/download/>__ 3.10
- or later. We try to follow the same schedule of minimum Python version support as

Basic usage or getting-started notes:
- ~~~~~~~~~~~~
- NumPy (see NEP 29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>__).
- .. code:: sh

- Source: https://github.com/fonttools/fonttools
- Extracted from upstream docs: https://raw.githubusercontent.com/fonttools/fonttools/HEAD/README.rst

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/fonttools-python-font-manipulation-subsetting/)

