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.1.zip
(254.3 kB
view hashes)
Built Distribution
glyphsLib-1.7.1-py2.py3-none-any.whl
(232.9 kB
view hashes)
Close
Hashes for glyphsLib-1.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1c710020e8ef2ad92e01c8f91f0c7c6ff7a6b2c6140ebc11a17e56d207d1071 |
|
MD5 | 0e45e3fdce8c7a3060586c36b9ef61c6 |
|
BLAKE2b-256 | 16720a2ddecc4144cc1529a354564717f0a1d807fef6820ca9ba739c3dd3797e |