A Python library and command line tool for rendering algorithmically-generated fonts and typefaces.
Project description
glaze
is a Python library and command line tool for rendering
algorithmically-generated fonts and typefaces.
Table of Contents
Demo
>>> 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)
>>> plt.show()
Installation
The latest release of glaze
can be installed from PyPI:
pip install glaze
Usage
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:
glaze --input INPUT [--output OUTPUT]
--input
is a .json
file (such as those produced by knead
), or a directory
containing such .json
files.
--output
is the path to the desired location of the output images. If
--output
is not specified, it defaults to the present working directory.
Refer to our quickstart for
more information on how to use glaze
.
Documentation
Please refer to our full documentation.
Contributing
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.
License
glaze
is licensed under the MIT
license.
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.