Registry / data / glyphslib

glyphslib

JSON →
library6.13.1pypypi✓ verified 79d ago

A Python library that bridges Glyphs source files (.glyphs) to UFOs (Unified Font Object) and back. It converts .glyphs files into UFO packages for further processing (e.g., with fontmake) and can also write back to .glyphs format. The current version is 6.13.0, with a relatively active release cadence (multiple minor releases per year). Requires Python >= 3.10.

pip install glyphslib
INSTALL
IMPORT
SIG · GLYPHSLIB
G
glyphslib
datapythonv6.13.1
Install
3.3s avg
Import
Disk
56MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v6.13.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 56.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.3s · import 0.000s · 57MB
56MB installed
● package 56MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GSGlyphsFile
from glyphsLib import GSFont
from glyphsLib import GlyphsFile

Load a .glyphs file and convert it to UFOs using the high-level API.

from glyphslib import load, to_ufos # Load a .glyphs file glyphs_data = load('MyFont.glyphs') # Convert to UFO fonts (list of UFO objects for each master) ufo_fonts = to_ufos(glyphs_data) # Now you can work with UFOs using fontTools or ufoLib2 for ufo in ufo_fonts: print(ufo.info.familyName)
Debug
Known issues
breakingVersion 6.0.0 dropped support for Python 3.9 and earlier. If you are on an older Python, you must use an older version of glyphsLib.
fix
Upgrade to Python 3.10+ or pin to glyphsLib <6.0.0 (e.g., pip install 'glyphslib<6').
affects: >=6.0.0
gotchaThe .glyphs file format (v2 vs v3) is auto-detected, but some custom parameters or new features in Glyphs 3 may not be fully supported. Always check for warnings or errors during conversion.
fix
Use the `validate` function or inspect the logs for unsupported features.
affects: all
deprecatedThe `glyphslib.glyphs` submodule (direct .glyphs file parsing) is being deprecated in favor of the higher-level API in `glyphslib` package itself.
fix
Use `from glyphslib import load` instead of `from glyphslib.glyphs import load`.
affects: >=6.0.0
gotchaWhen converting back to .glyphs (using `to_glyphs`), some UFO features like kerning exceptions or OpenType lookups may not round-trip perfectly. Always verify output.
fix
Check the generated .glyphs file in Glyphs.app for fidelity.
affects: all
Upgrade
Version history
6.13.1latest on PyPI · released Apr 28, 2026
Audit
Dependencies
fonttoolsrequiredCore dependency for UFO and font operations
ufoLib2requiredUFO reading/writing
protobufrequiredUsed for .glyphs file parsing
Agent activity
26 hits · last 30 days
node
26
Resources
glyphslib — pip install glyphslib · libregistry