Skip to main content

A tool to make a PILfont from png images

Project description

pil-font-maker

Extract a png image for each character in a PIL ImageFont and store them in a folder. Contruct a PIL ImageFont from a folder containing a png image for each character.

Installation

python -m pip install pil-font-maker

Supported Commands

On a command line type:

pil-font-decode

Usage: pil-font-decode file.pil [folder]

Convert a .pil ImageFont to a folder containing a .png for each character present

pil-font-encode

Usage: pil-font-encode folder [file.pil]

Convert a folder containing a .png for each character to a .pil ImageFont. The pngs should be named char_0.png, char_1.png upto char_255.png Omitted pngs will result in empty characters.

pil-font-download

Usage: pil-font-download

Download some sample pil fonts from the pillow github repository

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pil-font-maker-0.8.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

pil_font_maker-0.8.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file pil-font-maker-0.8.0.tar.gz.

File metadata

  • Download URL: pil-font-maker-0.8.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.7

File hashes

Hashes for pil-font-maker-0.8.0.tar.gz
Algorithm Hash digest
SHA256 026c610cde9532c1b7e477a59a5bb42b7356eefc535feafa068a573a381ac04b
MD5 dd81a7b4f8c153b5566929ac0672db27
BLAKE2b-256 8a17e318435f47f9c3c7cc75dc80d60f56e42257a2e9fedadadc729e29d0913a

See more details on using hashes here.

File details

Details for the file pil_font_maker-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pil_font_maker-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f4befa7726c600641bff2bda286596c37f6026dea1fcf2490f4ac34086b0064
MD5 62df02de3b9d20a75d8935db93a0f388
BLAKE2b-256 c21790d5bafa5df84d1a0ccc02853d701924d09f80a4990d551e3d693e9ca5f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page