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.7.0.zip (254.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glyphsLib-1.7.0-py2.py3-none-any.whl (232.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file glyphsLib-1.7.0.zip.

File metadata

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

File hashes

Hashes for glyphsLib-1.7.0.zip
Algorithm Hash digest
SHA256 a4c5edbf89d0cb158e91206be7038630dfa9bff4448c90ac1d3f11c2e6275da3
MD5 17e175a6a09c6367f59500d6d4c3a1fb
BLAKE2b-256 b1f4256f8be38bc820ebd91f821635ba407c62437afc0373994184cf46f03f75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for glyphsLib-1.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f5f0ea27c1502da9f80478d6f048d84b8bb7d5942d79447ef6674bcb703cbccb
MD5 548c5167171f22d72da2cab98b0b3988
BLAKE2b-256 a0cc2cec90f08a4ec638a04a4d97e2b527eab837fd1784f10cbdd1abab081baa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page