Skip to main content

Tools for extracting data from font binaries into UFO objects.

Project description

Travis Build Status PyPI Version Python Versions

UFO Extractor

Tools for extracting data from font binaries into UFO objects.

Features

Import data into a Defcon Font instance:

>>> import extractor
>>> import defcon
>>> ufo = defcon.Font()
>>> extractor.extractUFO("/path/to/MyFont.ttf", ufo)
>>> ufo.save("/path/to/MyFont.ufo")

Supported input formats:

  • CFF or TrueType-flavored OpenType fonts (*.otf, *.ttf)

  • FontTools TTX files (*.ttx)

  • WOFF 1.0/2.0 (*.woff, *.woff2)

  • PostScript Type1 fonts (*.pfa, *.pfb, etc.)

Installation

You can install extractor with pip:

$ pip install ufo-extractor

Note that, for historical reasons, the package is listed on the Python Package Index under the name ufo-extractor, to disambiguate it from another package also called “extractor”. However, the import name for the package remains extractor, without prefix.

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

ufo_extractor-0.3.0.zip (22.9 kB view hashes)

Uploaded Source

Built Distribution

ufo_extractor-0.3.0-py2.py3-none-any.whl (17.2 kB view hashes)

Uploaded Python 2 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