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:
# Recommended usage
glaze --directory PATH/TO/DATA/
# Alternative usage
glaze --files FILES
-
The
--directorymust have the following structure:data ├── json │ ├── Georgia.json │ └── ... └── ...
where the
.jsonfiles are those produced byknead. Renders will be saved in a directorydata/renders-TTTT-DD-MM/, whereTTTTis 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 byknead), - a comma-separated list of such paths, or
- a regex matching the path(s) to one or more
.jsonfiles.
- a path to a
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.
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.
Release files for glaze 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| glaze-0.3.0.tar.gz | 129.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| glaze-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 137.1 kB
Release files / glaze-0.3.0.tar.gz
| Download URL | glaze-0.3.0.tar.gz |
|---|---|
| Size | 129.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
351317915b51b5b464548e70a811c40b49f868101097b302d473a7fd2feb1619
|
|
BLAKE2b-256 checksum How to use checksums |
7028b842b2f1e5f32196b443603060a976447f1f5a15aacd7a2849549cd58076
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
|
Release files / glaze-0.3.0-py3-none-any.whl
| Download URL | glaze-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32b8c76b3ae74f51e73ad8d253f49b5ce164b4b88dc89a85ce1ad4c42e69dc95
|
|
BLAKE2b-256 checksum How to use checksums |
dd1df118f373a94d6502c44e125ec887eda0e95680adb6df8e0732574f17fdfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
|