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.2.0.zip
(40.1 kB
view hashes)
Built Distribution
Close
Hashes for glyphsLib-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7e12933c03a65871d1cf6d6494271d139fe9c7c8fba1ecb2be9a86afeeb826 |
|
MD5 | 46d6691c60143ce0fe9e2f6b43a4f79d |
|
BLAKE2b-256 | be621eed9a7dbb5ed2e237fdaf6d4fb44bc1d0a9fb994b72c64dde186b6022ee |