https://github.com/bastienleonard/playdate-font-converter
Generates Playdate font files from local fonts.
https://github.com/bastienleonard/playdate-font-converter
font playdate
Last synced: 2 months ago
JSON representation
Generates Playdate font files from local fonts.
- Host: GitHub
- URL: https://github.com/bastienleonard/playdate-font-converter
- Owner: bastienleonard
- Created: 2025-12-09T01:58:15.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-12-19T05:51:09.000Z (6 months ago)
- Last Synced: 2025-12-22T01:44:05.433Z (6 months ago)
- Topics: font, playdate
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playdate font converter
Generates [Playdate font
files](https://sdk.play.date/3.0.1/Inside%20Playdate.html#C-graphics.font) from
a local font file and a size.
## Dependencies
* Rust: https://rust-lang.org/tools/install/
* SDL3: https://github.com/libsdl-org/SDL/releases
## Usage example
Run this at the root of the project:
```
$ cargo run /usr/share/fonts/noto/NotoSans-Regular.ttf 20
Wrote NotoSans-Regular-20-table-19-28.png
Wrote NotoSans-Regular-20.fnt
```
To load the font in your Playdate game:
```
local font, err = playdate.graphics.font.new('NotoSans-Regular-20')
if err then
error(err)
end
```