An open API service indexing awesome lists of open source software.

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.

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
```