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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file ufo_extractor-0.4.2.zip.

File metadata

  • Download URL: ufo_extractor-0.4.2.zip
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for ufo_extractor-0.4.2.zip
Algorithm Hash digest
SHA256 11adfa59972af28403298c59ea318a10121bf7279be34f058a747e764572fd26
MD5 809651be699a12f2898777e64afa667d
BLAKE2b-256 83d6234af81007b77753bb5dc60da54125608f000f8576d09e221fbb47f99f40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ufo_extractor-0.4.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for ufo_extractor-0.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3ece6d2e4ea2de53b6dc1e39dae655d80e8662bd610c1070f3ee58936c060fd6
MD5 fcbe612977a4dbe7404d44e656c360e4
BLAKE2b-256 96198b43d003b05a802ecb8b2a7a47fac00ead765cca72572b60a3bc782138e5

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