skip to navigation
skip to content

glyphsLib 2.1.1

A bridge from Glyphs source files (.glyphs) to UFOs


This library provides a bridge from Glyphs source files (.glyphs) to UFOs via defcon.

The main methods for conversion are found in Intermediate data can be accessed without actually writing UFOs, if needed.

Write and return UFOs


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)

The glyphsLib.classes module aims to provide an interface similar to’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.

File Type Py Version Uploaded on Size
glyphsLib-2.1.1-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-12-02 265KB (md5) Source 2017-12-02 313KB