Skip to main content

Load, examine and save fonts in a variety of formats

Reason this release was yanked:

Unsatisfiable dependency

Project description

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 * *
Glyphs 3 * *
.glyphspackage *
UFO *
Designspace *
Fontlab VFJ partial
TTF partial *
OTF 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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

babelfont-3.0.2.tar.gz (976.0 kB view details)

Uploaded Source

Built Distribution

babelfont-3.0.2-py3-none-any.whl (63.6 kB view details)

Uploaded Python 3

File details

Details for the file babelfont-3.0.2.tar.gz.

File metadata

  • Download URL: babelfont-3.0.2.tar.gz
  • Upload date:
  • Size: 976.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for babelfont-3.0.2.tar.gz
Algorithm Hash digest
SHA256 370399c9bf3252db91bbd0dbed91a4561f260c54a8462b4be8726ce1aa85b872
MD5 d28bf61b413c9f3fc47ba62e00beb958
BLAKE2b-256 33c9df977cf5b20192f3bcd48cc6f042f132b3ef0dcb09b17c8ba9f88cf9ea55

See more details on using hashes here.

Provenance

File details

Details for the file babelfont-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: babelfont-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 63.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for babelfont-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2befb1efa3c89a469d34b182f979c4ed289486e94c3d2271643e775e4d3f15c
MD5 e9f4f2758212d3fc7761744b6ae0d343
BLAKE2b-256 bcf203cd2a5f70ed0311d3cf3fd77d88b9812a594be9a9555238ce73f4afb312

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page