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

This version

1.7.3

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.7.3.zip (255.0 kB view details)

Uploaded Source

Built Distribution

glyphsLib-1.7.3-py2.py3-none-any.whl (233.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file glyphsLib-1.7.3.zip.

File metadata

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

File hashes

Hashes for glyphsLib-1.7.3.zip
Algorithm Hash digest
SHA256 735c7eb71f7ab9f5a177e5f007cd5298f3783d15cde34cc1bc95ddfd22810e86
MD5 84c5e76fa6de068bc81f517667e54465
BLAKE2b-256 b75c9e213c6722b074a6e8dc1dcd06da56da5bf065124688fe57d9f186a2d606

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for glyphsLib-1.7.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b878c2e30258e257781cd8d458c90a42051624cf06fc1ae87aac2f8ed824de0
MD5 44cdb2587bbfa72b843af9b183ba4cff
BLAKE2b-256 38b208a73684f326faddc2dc602ab4c1f6206d74e129b0eb329fabdfc3848621

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