Skip to main content

Tools for extracting data from font binaries into UFO objects.

Project description

CI 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.6.0.zip (3.1 MB view details)

Uploaded Source

Built Distribution

ufo_extractor-0.6.0-py2.py3-none-any.whl (21.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ufo_extractor-0.6.0.zip.

File metadata

  • Download URL: ufo_extractor-0.6.0.zip
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ufo_extractor-0.6.0.zip
Algorithm Hash digest
SHA256 9b6f99dd1031bfc7a4af7849db8908e959323523f957134ba7be9d3a81050af1
MD5 80eac0fb8d725e0568c2a187b4039c03
BLAKE2b-256 fd42d6352da67e3b8a2b34a920d54d27fe1d02cbac8c07a9ade94b44baeddb58

See more details on using hashes here.

File details

Details for the file ufo_extractor-0.6.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ufo_extractor-0.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5f30a80da2502d8f6007c3b480ee5e02c0aa7bb0ea6980f1d6a754b96b128607
MD5 02599e328b79945e4799cd2bd3c52081
BLAKE2b-256 8f5ec8b0a3c0d22b92042f4e24bdeb5f952cbf17a40907b46a98c3403fd8b8a9

See more details on using hashes here.

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