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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file glyphsLib-1.3.0.zip.
File metadata
- Download URL: glyphsLib-1.3.0.zip
- Upload date:
- Size: 240.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7b8315d4e1162e0a6084b97e63f3b50e10350375985c3e5da8216eb398b7ac0
|
|
| MD5 |
6b97a7ae2bf75d075d4decc7d4492a4b
|
|
| BLAKE2b-256 |
ac3bc3a878cad24f6e1a53ea486435b83e47582bbf74b703bc40e242da23b234
|
File details
Details for the file glyphsLib-1.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: glyphsLib-1.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 230.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66ff47355e3e40cb7d761e90baa17a4107ffaf1f85d6b5b702e58a0b97a6de03
|
|
| MD5 |
56be9a8a55e49e840edb5486b89e13d5
|
|
| BLAKE2b-256 |
2c8b129443cb0184cf4eb98d6521ed5dd93c261baee6fa9cc8c29f28e7ca17b3
|