kreativekorp / bitsnpicas

Bits'N'Picas - Bitmap & Emoji Font Creation & Conversion Tools
333 stars 24 forks source link

Interest in adding Playdate font support? #23

Closed gingerbeardman closed 2 years ago

gingerbeardman commented 2 years ago

A while ago I added initial Playdate export support to Bits'n'Picas and put my source at https://gitlab.com/kreativekorp/bitsnpicas/-/merge_requests/4 (it seemed more active than your GitHub at the time).

My old code is on GitHub at: https://github.com/gingerbeardman/bitsnpicas/tree/playdate

If there is any interest in that, I can rebase it? But, really, my code is very naïve, only partially complete (no .fnt export).

Since then the Playdate has received a single file font export that makes much more sense to support for import and export.

Goal

The goal would be to have Playdate compatible export and import.

Format details

The Playdate font format has an open spec, and consists of either:

  1. combined

or

  1. separate
    • separate .FNT text file containing character metrics, kerning pairs
    • associated .PNG (this is what my code exports)
    • Example: quanpixel.fnt.png.zip

Which one I choose varies, depending on whether I need access to the PNG.

Supported characters

Other example font

Some are included in the Playdate SDK (supports: Linux, macOS, Windows)

Alternative tools

Web-based font tools that support the format:

gingerbeardman commented 2 years ago

Exciting!!!