Skip to main content

A Python library and command line tool for rendering algorithmically-generated fonts and typefaces.

Project description

Glaze logo

Build Status Python 3.5

glaze is a Python library and command line tool for rendering algorithmically-generated fonts and typefaces.

Table of Contents


>>> import matplotlib.pyplot as plt
>>> from glaze import read_json, render
>>> font = read_json("data/Georgia.json")
>>> font_name, glyph_name, glyph = font[0]
>>> render(glyph)

Rendered glyph (lowercase g)


The latest release of glaze can be installed from PyPI:

pip install glaze


To use glaze as a library:

import matplotlib.pyplot as plt
from glaze import render

fig = render(contours)  # Render one glyph

To run glaze on the command line:

# Recommended usage
glaze --directory PATH/TO/DATA/

# Alternative usage
glaze --files FILES
  1. The --directory must have the following structure:

    ├── json
    │   ├── Georgia.json
    │   └── ...
    └── ...

    where the .json files are those produced by knead. Renders will be saved in a directory data/renders-TTTT-DD-MM/, where TTTT is military time.

  2. However, should you want to render only a few files, you can use the --files flag, which must be one of:

    • a path to a .json file (again, such as those produced by knead),
    • a comma-separated list of such paths, or
    • a regex matching the path(s) to one or more .json files.

Renders will be saved in the present working directory (unless the --output flag is passed).

Refer to our quickstart for more information on how to use glaze.


Please refer to our full documentation.


Contributions are always welcome! Please see our issue tracker for outstanding issues, code of conduct for community guidelines, and our contributing guide for details on how to make a contribution.


glaze is licensed under the MIT license.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for glaze, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size glaze-0.3.0-py3-none-any.whl (7.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size glaze-0.3.0.tar.gz (129.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page