Skip to main content

A tool to make a PILfont from png images

Project description

pypi version

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]

To convert a .pil/.pbm ImageFont to a folder containing a .png for each character present

pil-font-encode

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

Convert a folder containing a .png for each character to a .pil/.pbm 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.3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pil-font-maker-0.9.3.tar.gz
Algorithm Hash digest
SHA256 b35bd879c689a1d64f009dd781fc6577c94e088ba1a9a2d8267caa5804a9ad8f
MD5 c07a4208ddc8982909b5dce9d3f7fc15
BLAKE2b-256 0512af30b631695199d3c1c2b5ea273ba0c552d04c0692418d137547ba76c7b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pil_font_maker-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 676e7be9d8d4aed7fce1a5fe54d9aab68659a56cefb5ea7436b9aa15cd2fbee1
MD5 ef5f1dc0ce0dede8d03ab2dd931f530c
BLAKE2b-256 f034c0fe26565cce2ca298f7835de46e9d61d057a9c20bd06d46aad0f17f215f

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