https://github.com/notpeter/playdate-font-utils
Utilities for Playdate Fonts
https://github.com/notpeter/playdate-font-utils
Last synced: about 1 year ago
JSON representation
Utilities for Playdate Fonts
- Host: GitHub
- URL: https://github.com/notpeter/playdate-font-utils
- Owner: notpeter
- License: mit
- Created: 2022-05-16T04:31:39.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T19:40:26.000Z (almost 4 years ago)
- Last Synced: 2024-12-25T17:08:20.173Z (over 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Playdate-Font Utils
## png2fnt.py
Convert PNG sprite sheet to Panic Playdate FNT font file with embeddd base64 encoded PNG.
### Usage
Assuming a png sprite sheet where the glyphs are uniform size (e.g. width=7, height=11)
```shell
python3 png2fnt.py 7x11 'abcdefghijklmopqrstuvwxyz' filename.png
python3 png2fnt.py 7x11 'abcdefghijklmopqrstuvwxyz' filename.png > fontname.fnt
```
## See also:
* https://github.com/jaames/playdate-reverse-engineering/blob/main/formats/fnt.md