Skip to content

Little python script that converts font's glyph images to a packed array of bits.

License

Notifications You must be signed in to change notification settings

GameWin221/BitFontMaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitFontMaker

Little python script that converts font's glyph images to a packed array of bits. Makes the process of creating bit fonts a bit easier when working with images. There is an example font included in the example8x5 directory.

Supported conversions

The script supports:

  • C++
  • C
  • Rust
  • You can easily add your own conversions...

Usage

  • Make a directory and put your letter image files in it.
  • The letter images must follow the naming convention: {ascii_code}.{extension}, e.g.: 65.png for the image of letter A.
  • All the images must have identical sizes.
  • Run the script: bitfontmaker.py (You might need to do pip install Pillow first)
  • Specify the source directory containing your letter image files, e.g.: ./example8x5 or an absolute path.
  • Specify the conversion target, e.g.: c for a C array.

About

Little python script that converts font's glyph images to a packed array of bits.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages