ufoLib2
ufoLib2 is a UFO font processing library.
What it is and what it does
ufoLib2 is a thin, fast library for working with Unified Font Object (UFO) files programmatically. It provides a straightforward Python interface to read, inspect, and modify UFO data without the overhead of notifications, layout engines, or other support classes found in heavier font libraries. It builds on fontTools and aims to be API-compatible with defcon where practical, making it suitable for developers who need to automate font processing tasks, batch-edit glyphs, or integrate UFO handling into larger font tools.
The library is designed for speed and simplicity: it strips away features you may not need in order to keep the core lean and predictable. If you're writing scripts to transform fonts, extract glyph data, or build font-processing pipelines, ufoLib2 offers a direct path to the UFO data model without unnecessary complexity.
Use it for:
- Batch-process hundreds of UFO files to extract glyph metrics or modify outlines programmatically.
- Automate font design workflows by reading and updating UFO metadata, kerning, or feature code.
- Build font validation or analysis tools that need fast, lightweight access to UFO structure.
- Integrate UFO file handling into larger font build pipelines or CI/CD systems.
- Script-driven font transformations (scaling, renaming glyphs, updating Unicode mappings).
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
ufoLib2 provides a lightweight, programmatic interface to read and manipulate Unified Font Object (UFO) files, designed for batch processing and fast iteration over font data.
Yes. ufoLib2 is actively maintained, has no known vulnerabilities, installs with minimal friction, and fills a clear niche for developers who need fast, lightweight UFO processing without the overhead of heavier font libraries. The Apache 2.0 license is permissive and suitable for both open-source and commercial work. Install it if you're automating font tasks or building font tools.
Install
ufolib2 on PyPI
pip
pip install ufolib2uv
uv add ufolib2poetry
poetry add ufolib2Installing ufoLib2
Before you install
Low friction: pure Python wheel with only two lightweight runtime dependencies (attrs and fonttools). Active maintenance with recent commits; last release 400 days ago suggests stable, mature code rather than rapid iteration.
License in practice
Apache 2.0 is permissive and business-friendly; you can use, modify, and distribute ufoLib2 in commercial projects with minimal restrictions, provided you include a copy of the license.
Quickstart
pip install ufoLib2
from ufoLib2 import Font
font = Font.open('path/to/font.ufo')
for glyph in font:
print(glyph.name)
Requires Python 3.9 or later.
Verify before relying
- Whether ufoLib2 handles all UFO 3 spec features or only a subset of the data model.
- Performance characteristics for very large UFO files or batch operations on hundreds of fonts.
- API compatibility scope with defcon—which methods are guaranteed to work identically.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — attrs, fonttools |
| Maintenance | actively maintained — 400 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 87,521/month — #13,792 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ufolib2-0.18.1-py3-none-any.whl
Tags
More Fonts packages
fonttools manipulates font files in multiple…
permissive · top 1,000 on PyPI
brotliProvides Python bindings to the Brotli…
permissive · top 1,000 on PyPI
pyfigletRenders ASCII text as ASCII art using a variety…
permissive · top 5,000 on PyPI
xhtml2pdfConverts HTML and CSS to PDF documents using…
permissive · top 5,000 on PyPI
artConverts text and generates one-line ASCII art…
permissive · top 5,000 on PyPI
cffsubrSubroutinizes CFF (Compact Font Format) font…
permissive · top 15,000 on PyPI
defconDefcon provides lightweight, UFO-based objects…
permissive · top 15,000 on PyPI
ufo2ftCompiles OpenType font binaries (OTF and TTF)…
permissive · top 15,000 on PyPI
glyphsLibConverts Glyphs source files (.glyphs) to UFO…
permissive · top 15,000 on PyPI
cu2quConverts cubic Bézier curves to quadratic…
permissive · top 15,000 on PyPI
pymupdf-fontsProvides a collection of optional fonts…
unclear · top 15,000 on PyPI
unPDFExtracts individual characters and metadata…
permissive · top 15,000 on PyPI
fontbakeryFont Bakery is a command-line tool that checks…
unclear · top 15,000 on PyPI
weblate-fontsProvides a curated collection of fonts packaged…
unclear · top 15,000 on PyPI