Skip to main content

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

Project description

Travis Build Status

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.1.0.zip (39.4 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.1.0-py2.py3-none-any.whl (30.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file glyphsLib-1.1.0.zip.

File metadata

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

File hashes

Hashes for glyphsLib-1.1.0.zip
Algorithm Hash digest
SHA256 816e326e4a9e877e40a49e6f966cf3e01c502903495a80a096dcf2beecfb0d41
MD5 e724817b15eb7d3692d0c6e961afdce1
BLAKE2b-256 c238fa40988b78cbc2ef445b8147d21ee2ad85d979658a10ede9ea9c8f99ec9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for glyphsLib-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b3efb6f1ee3d16aafbebc6d19df741b5602aed513476355333b3328932fde59c
MD5 12918eced150453e99f6514bbdac13a1
BLAKE2b-256 a4eb7e8747d93df0556d99a830fc3bc32f751f4b3c450b5465627b88044d2c0f

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