Skip to main content

Babelfont: Load, examine and save fonts in a variety of formats

This describes Babelfont >3.0, which is a complete rewrite from the previous version.

Babelfont is a utility for loading fonts and examining fonts in a variety of formats. It can also be used to write fonts in some of these formats, making it possible to convert between font formats.

Here are the formats which are currently supported:

Format Read Write
Glyphs 2 partial
Glyphs 3 * *
.glyphspackage *
UFO *
Designspace *
Fontlab VFJ partial
Fontlab VFB partial
TTF partial *
OTF partial
Glyphr Studio 2 partial
Fontforge SFD partial *
Fontforge SFDir partial *
Babelfont * *

Babelfont converts all of the above font formats into a intermediary set of objects, whose object hierarchy can be seen here. The allows the developer to examine any font (single master or variable), without needing to worry about the details of each font format.

For example:

from babelfont import load

font = load("Myfont.glyphs") # Or .designspace, or whatever
default_a = font.default_master.get_glyph_layer("A")
top_anchor = default_a.anchors_dict["top"].x
print("Top anchor = (%i,%i)" % (top_anchor.x, top_anchor.y))
print("LSB, RSB = (%i,%i)" % (default_a.lsb, default_a.rsb))
font.save("Myfont.ttf")

Metadata

Release files for babelfont 3.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for babelfont 3.1.3
File Size Uploaded
babelfont-3.1.3.tar.gz 1.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for babelfont 3.1.3
File Interpreter ABI Platform
babelfont-3.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 2.0 MB

Release files / babelfont-3.1.3.tar.gz

Download URL babelfont-3.1.3.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
23f7b17c02eb62df55ed0e74391768ea16fc262283ede2a7e7b4bf96c91378df
BLAKE2b-256 checksum
How to use checksums
2d142acdc089ea11b2ef0710f527af3aeec7e6267209db3caf8d56e5fa6d1939
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release files / babelfont-3.1.3-py3-none-any.whl

Download URL babelfont-3.1.3-py3-none-any.whl
Size 563.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c8a7b935c72f2fdf9c349be0d8a481cd9cc284dc20063a1752c1323c9f76c73
BLAKE2b-256 checksum
How to use checksums
dc7281154e96f30ddc23bfd9e7056556c1214de70f5d41b0dbf8065ee9216b94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page