Skip to main content

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

Project description

Travis Build Status PyPI Version

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

This version

1.7.2

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.2.zip (254.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glyphsLib-1.7.2-py2.py3-none-any.whl (233.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file glyphsLib-1.7.2.zip.

File metadata

  • Download URL: glyphsLib-1.7.2.zip
  • Upload date:
  • Size: 254.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for glyphsLib-1.7.2.zip
Algorithm Hash digest
SHA256 fee9083a438e6125c8f58b6d3766abe0472e6a38f4e8b71bdf1c0798f1c8c027
MD5 5fcf17e0a339a663e518eeddc94ee483
BLAKE2b-256 d95884027b396cc4e8bd62ee7a6e5a648636146696d96dbc085f89825dde771a

See more details on using hashes here.

File details

Details for the file glyphsLib-1.7.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for glyphsLib-1.7.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c36b1c292475f3cf68932f72e1cc2da8ee2a52b2ce3ec22f42b64b684e813c8f
MD5 8333d0baf00608dba5bed616e7db7398
BLAKE2b-256 88811165836627dd1fd22a038272b22f779e8eeb76ddba91ca59ef685f7e4e08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page