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.6.zip
(257.0 kB
view details)
Built Distribution
glyphsLib-1.7.6-py2.py3-none-any.whl
(234.1 kB
view details)
File details
Details for the file glyphsLib-1.7.6.zip
.
File metadata
- Download URL: glyphsLib-1.7.6.zip
- Upload date:
- Size: 257.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e413579ac6e68053e9f207180ecce447805cd3d51199a168b86f4706a5b2900a |
|
MD5 | e6fee82eaff2bc2c0cba9aabe639ff6a |
|
BLAKE2b-256 | 93fe6925a8fbcffbfc6e52b2b9463b37cb72149fc9a90e4fa72b860ee473716d |
Provenance
File details
Details for the file glyphsLib-1.7.6-py2.py3-none-any.whl
.
File metadata
- Download URL: glyphsLib-1.7.6-py2.py3-none-any.whl
- Upload date:
- Size: 234.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54fb746c5a48c6f07159f3ba3e9f7260b6677dcd5eb4fe6b364f5ff7d0a5be5 |
|
MD5 | 89c0eb696c6f6279e5384fa2cd79274e |
|
BLAKE2b-256 | dc2b3ecb184a6a9a9de834c484f943cb220793eb6ec2aaa9ca3bdd980c44b769 |