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.6.0.zip
(248.8 kB
view details)
Built Distribution
glyphsLib-1.6.0-py2.py3-none-any.whl
(231.3 kB
view details)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc5d756e69da1f01544526838066d348c311d4f25300849918b003678cf9ac0 |
|
MD5 | 2817e1d5c84c3598cb128476ffa05f47 |
|
BLAKE2b-256 | 8801185d6272c08a9cbf2f7c8248b24f14a3d2b91e698fc1f2899e88bdceee56 |
Provenance
File details
Details for the file glyphsLib-1.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: glyphsLib-1.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 231.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d91180b70eda076318b55b332d4c823cb668b800f9fbce9adb727269c9f07ee0 |
|
MD5 | fc4a8c16d5bde78a7d22557d5b7f1041 |
|
BLAKE2b-256 | 273c00b9ca99abb0b981c228b355c5fee1f3b6c9c9b07073f2582569cc22ccae |