knead is a command line tool for preprocessing, manipulating and serializing
font files for deep learning applications.
The latest release of knead can be installed from PyPI:
pip install kneadknead --input INPUT_FORMAT --output OUTPUT_FORMAT --directory PATH/TO/DATA/- The
--inputand--outputflags must be one of:
ttf: a.ttffont file.ttx: a.ttxXML format of the font. For more details, refer to thefonttoolsdocumentation.json: a.jsonformat of the font.pb: a.pbserialized protobuf format of each glyph in each font.npy: a.npyformat of samples from quadratic Bezier curves in each glyph in each font.
- The
--directorymust have the following structure:
data
└── ttf
├── Georgia.ttf
└── ...
Refer to our quickstart for
more information on how to use knead.
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.
knead is licensed under the MIT
license.