Skip to main content

Abstract interface to font source files based on fontParts

Project description

babelfont

https://img.shields.io/pypi/v/babelfont.svg https://github.com/simoncozens/babelfont/workflows/Python%20package/badge.svg Documentation Status

Read font files into fontParts objects and write them out again.

Usage

Here’s how to convert a font from one format to another (from the command line):

babelfont My-Font.glyphs My-Font.ufo

Here’s how to convert a font from one format to another (from a Python script):

from babelfont import Babelfont

font = Babelfont.open("My-Font.glyphs")
font.save("My-Font.ufo")

To interact with the font object, see the fontParts documentation.

Currently Babelfont supports:

  • UFO (Read and write)

  • Glyphs (Read and write)

  • OTF (Read only)

  • TTF (Read only)

  • Fontlab VFJ (Read only)

  • Free software: Apache Software License 2.0

History

2.0.2 (2020-02-08)

  • Fix source distribution, move to setuptools_scm

2.0.1 (2020-02-04)

  • Add the concept of an exported/unexported glyph

  • Revert “Ignore unexported glyphs”

  • Ignore missing date

  • Ignore unexported glyphs

  • Fix VFJ test

2.0.0 (2020-01-25)

  • Rewrite to load in font data directly instead of proxying. New interface.

  • Fix anchors, color loading

  • Add variable font abstraction layer

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-2.0.2.tar.gz (639.4 kB view hashes)

Uploaded Source

Built Distribution

babelfont-2.0.2-py3-none-any.whl (26.0 kB view hashes)

Uploaded Python 3

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