glyphsLib 2.1.1
pip install glyphsLib==2.1.1
Released:
A bridge from Glyphs source files (.glyphs) to UFOs
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache Software License 2.0)
- Author: James Godfrey-Kittle
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
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')
Read and write Glyphs data as Python objects
from glyphsLib import GSFont
font = GSFont(glyphs_file)
font.save(glyphs_file)
The glyphsLib.classes module aims to provide an interface similar to Glyphs.app’s Python Scripting API.
Note that currently not all the classes and methods may be fully implemented. We try to keep up to date, but if you find something that is missing or does not work as expected, please open a issue.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache Software License 2.0)
- Author: James Godfrey-Kittle
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
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
File details
Details for the file glyphsLib-2.1.1.zip
.
File metadata
- Download URL: glyphsLib-2.1.1.zip
- Upload date:
- Size: 320.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c9e4dc3b5f097de3e5a782943acbff6d7a68df8a80db2cd485f6e4410085c49 |
|
MD5 | 650c38b4406a23fb1a053f2d1b6ca51b |
|
BLAKE2b-256 | af5978ddbef02c5b7bc9fc98fc0601b2f4dc034cb5b52d79de6f1faa62187aa0 |
File details
Details for the file glyphsLib-2.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: glyphsLib-2.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 272.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e942d171441305447d2e7fde000944d6f61252eff58f1aa3a253c06e1d09f3bb |
|
MD5 | 51dd85573ec7b7f26d816f9c1f18f969 |
|
BLAKE2b-256 | 32e4f8f33f5d11a295bb741d1c9df896a8f24bbc361bc4d3a9804a307e43121a |