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.9.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

pil_font_maker-0.9.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pil-font-maker-0.9.0.tar.gz
  • Upload date:
  • Size: 6.7 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.9.0.tar.gz
Algorithm Hash digest
SHA256 8dcad7254b2e41fd9b18ed358769317547cb519ce8feb2a8b164067c7614593e
MD5 89123ae5e1eb28d69e679372cba93c91
BLAKE2b-256 d62d126a31e29f3dec34db638e63975f9d3999e03224ef23e2ff97429d609b81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pil_font_maker-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5bb181561c9857408c2db6f55f09a140ca0e5a92cd29c721075a985181bdc9c
MD5 feebb51d635e5785fad2e5f6f6a0ad26
BLAKE2b-256 5184b54da9f0811ef1cc9674ab32c704cbeccc9ae747bb7abbec9ee8b8a5d2d1

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