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.5.zip
(256.0 kB
view details)
Built Distribution
glyphsLib-1.7.5-py2.py3-none-any.whl
(233.7 kB
view details)
File details
Details for the file glyphsLib-1.7.5.zip
.
File metadata
- Download URL: glyphsLib-1.7.5.zip
- Upload date:
- Size: 256.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17e38259af10b1a5d45edf67249e33bec36aae4e97f5805789ed61f94d27cfaa |
|
MD5 | ddd1b2d6f690a473f4b6e4b5f054c150 |
|
BLAKE2b-256 | f2f469b6947a48c8e3d55ff34715ee1bac1960d48eda9b1f6f08aeb85df4c187 |
Provenance
File details
Details for the file glyphsLib-1.7.5-py2.py3-none-any.whl
.
File metadata
- Download URL: glyphsLib-1.7.5-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 | 860ee56dbc74af6485c221d99f348e01b3693364c96f52adb053dc3de4fe5615 |
|
MD5 | 8eb0652330f34b20b9e06acb9596e0b7 |
|
BLAKE2b-256 | 441a9f4894cc85138bc18c392788bd8f9104104187983bda0e19dae6ffaf53e3 |