avahe-kellenberger / astroships

Asteroids-like Battle Arena (in development)
4 stars 0 forks source link

Convert Kenny Pixel (Regular) font to NICO format #3

Open notchris opened 3 years ago

notchris commented 3 years ago

Issue: The NICO font format requires a horizontal, one-row image of each glyph to be displayed. The default image is 381x8px, where each glyph is 3x5px with a 1px margin. There is an additional 1px margin on the bottom of the image.

Source Nico default font

Target Font Kenney Pixel font

notchris commented 3 years ago

@avahe-kellenberger We may have an issue using the Kenney Pixel font because it's not actually monospaced. We can manually adjust the glyphs to fit within the constraints of nicos font format, or we can pick a font that closely resembles Kenney Pixel that is monospaced. If we try to manually adjust the Kenney font, we will get that subpixel issue I think.

notchris commented 3 years ago

Some of these are pretty close, though despite the title, not all these are monospaced 🥇 to the category author. https://www.1001fonts.com/monospaced+pixel-fonts.html