A bridge from Glyphs source files (.glyphs) to UFOs
Project description
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.4.zip
(256.0 kB
view details)
Built Distribution
glyphsLib-1.7.4-py2.py3-none-any.whl
(233.7 kB
view details)
File details
Details for the file glyphsLib-1.7.4.zip
.
File metadata
- Download URL: glyphsLib-1.7.4.zip
- Upload date:
- Size: 256.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32c523ffef22188a5b739e25ae40a5fbc89dedb176cb9360e9131812cfc2e36d |
|
MD5 | 999f252e808e6ebafc1b69d06b82e42e |
|
BLAKE2b-256 | f7d33851b2e025bb100bb720e4ee794baca3381b50a9084adbae232ba78757c8 |
Provenance
File details
Details for the file glyphsLib-1.7.4-py2.py3-none-any.whl
.
File metadata
- Download URL: glyphsLib-1.7.4-py2.py3-none-any.whl
- Upload date:
- Size: 233.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 531ff7c4ff5649d9c37bcc66a7ad1e49fd15e5f0cb265cf8bcd49720a87abd2b |
|
MD5 | a0b5964f580b0de50b9bedd1c3f32539 |
|
BLAKE2b-256 | 7d9fa4d16ed5c86d08a8964a80d92be7cd9e23cb08a93942c668ac2a218a4a13 |