A Python library and command line tool for rendering algorithmically-generated fonts and typefaces.
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 >>> render(glyph) >>> plt.show()
The latest release of
glaze can be installed from PyPI:
pip install glaze
glaze as a library:
import matplotlib.pyplot as plt from glaze import render fig = render(contours) # Render one glyph
glaze on the command line:
# Recommended usage glaze --directory PATH/TO/DATA/ # Alternative usage glaze --files FILES
--directorymust have the following structure:
data ├── json │ ├── Georgia.json │ └── ... └── ...
.jsonfiles are those produced by
knead. Renders will be saved in a directory
TTTTis military time.
However, should you want to render only a few files, you can use the
--filesflag, which must be one of:
- a path to a
.jsonfile (again, such as those produced by
- a comma-separated list of such paths, or
- a regex matching the path(s) to one or more
- a path to a
Renders will be saved in the present working directory (unless the
Refer to our quickstart for
more information on how to use
Please refer to our full documentation.
glaze is licensed under the MIT
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|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 hashes|
|Filename, size glaze-0.3.0.tar.gz (129.7 kB)||File type Source||Python version None||Upload date||Hashes View hashes|