Skip to content

haarsmam/pil-font-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

example.png

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 <folder> [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

About

Tools to make PIL bitmap fonts (ImageFont)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages