A simple tool that compresses bitmap fonts created by domsson with a simple custom compression algorithm. Compresses those specific fonts better than PNG.
Originally created for my experimental rust-browser-game.
- A png image file 128x64 pixels
- Monochrome image with black for the background and white for the foreground
File Name | Original PNG size (bytes) | Size of ./fontgen -f bin output (bytes) |
---|---|---|
charmap-cellphone_white_0.png | 1103 | 623 |
charmap-futuristic_black_0.png | 1070 | 621 |
charmap-oldschool_white.png | 1026 | 622 |
TBD
$ make
$ ./fontgen ./charmap-oldschool_white.png