Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A command line tool for preprocessing, manipulating and serializing font files for deep learning applications.

Project description

Knead logo

Build Status Python 3.5


knead is a command line tool for preprocessing, manipulating and serializing font files for deep learning applications.

Table of Contents

Installation

The latest release of knead can be installed from PyPI:

pip install knead

Usage

knead --input INPUT_FORMAT --output OUTPUT_FORMAT --directory PATH/TO/DATA/
  1. The --input and --output flags must be one of:

    • ttf: a .ttf font file.
    • ttx: a .ttx XML format of the font. For more details, refer to the fonttools documentation.
    • json: a .json format of the font.
    • pb: a .pb serialized protobuf format of each glyph in each font.
    • npy: a .npy format of samples from quadratic Bezier curves in each glyph in each font.
  2. The --directory must have the following structure:

data
└── ttf
    ├── Georgia.ttf
    └── ...

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

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

knead 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 knead, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size knead-0.2.0-py3-none-any.whl (12.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size knead-0.2.0.tar.gz (862.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page