Skip to main content

A bridge from Glyphs source files (.glyphs) to UFOs

Project description

Travis Build Status PyPI Version

glyphsLib

This library provides a bridge from Glyphs source files (.glyphs) to UFOs via defcon.

The main methods for conversion are found in __init__.py. Intermediate data can be accessed without actually writing UFOs, if needed.

Write and return UFOs

Masters:

master_dir = 'master_ufos'
ufos = glyphsLib.build_masters('MyFont.glyphs', master_dir)

Interpolated instances (depends on MutatorMath):

master_dir = 'master_ufos'
instance_dir = 'instance_ufos'
ufos = glyphsLib.build_instances('MyFont.glyphs', master_dir, instance_dir)

Load UFO objects without writing

ufos = glyphsLib.load_to_ufos('MyFont.glyphs')

Load Glyphs data as a Python dictionary

with open('MyFont.glyphs', 'rb') as glyphs_file:
    glyphs_data = glyphsLib.load(glyphs_file)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glyphsLib-1.6.0.zip (248.8 kB view details)

Uploaded Source

Built Distribution

glyphsLib-1.6.0-py2.py3-none-any.whl (231.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file glyphsLib-1.6.0.zip.

File metadata

  • Download URL: glyphsLib-1.6.0.zip
  • Upload date:
  • Size: 248.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for glyphsLib-1.6.0.zip
Algorithm Hash digest
SHA256 cbc5d756e69da1f01544526838066d348c311d4f25300849918b003678cf9ac0
MD5 2817e1d5c84c3598cb128476ffa05f47
BLAKE2b-256 8801185d6272c08a9cbf2f7c8248b24f14a3d2b91e698fc1f2899e88bdceee56

See more details on using hashes here.

Provenance

File details

Details for the file glyphsLib-1.6.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for glyphsLib-1.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d91180b70eda076318b55b332d4c823cb668b800f9fbce9adb727269c9f07ee0
MD5 fc4a8c16d5bde78a7d22557d5b7f1041
BLAKE2b-256 273c00b9ca99abb0b981c228b355c5fee1f3b6c9c9b07073f2582569cc22ccae

See more details on using hashes here.

Provenance

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