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.)

  • FontLab files (*.vfb, when installed with optional dependency “vfb”)

Installation

You can install extractor with pip:

$ pip install ufo-extractor

To install with support for extracting from vfb files:

$ pip install ufo-extractor[vfb]

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

Uploaded Source

Built Distribution

ufo_extractor-0.7.0-py2.py3-none-any.whl (23.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ufo_extractor-0.7.0.zip.

File metadata

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

File hashes

Hashes for ufo_extractor-0.7.0.zip
Algorithm Hash digest
SHA256 159413a247c4f6a6f6c2b362e3c65f589991f1a9a38abe1789c5b3d57822487f
MD5 b6b36797e252f3a92da33212fabc1e62
BLAKE2b-256 57754ebd5e10d2259128f8560e69f2c6ed4628637636eb6656b45509341a6419

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ufo_extractor-0.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 793f573ce5fda81301271c62eaea35db739d4146d2097c840c361532ec6a23e3
MD5 c105c9485fe1ee84e295a62d222cb4c3
BLAKE2b-256 ff3876885934257f66e50cf7b6e4fbde35ab8c1d1c19752371a656c0f871222d

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