Menu

1 / 11

5x5 Pixel font for tiny screens (Maurycy's blog)

Hacker News·6 months ago
#mtHeP5JO
#maurycyz#font#distinct#size#glyphs
Reading 0:00
15s threshold

2026-04-18 — 2026-04-20 ( Programming )

Font data (C header)

All characters fit within a 5 pixel square, and are safe to draw on a 6x6 grid. The design is based off of lcamtuf's 5x6 font-inline.h, which is itself inspired by the ZX Spectrum's 8x8 font.

5x5 is the smallest size that doesn't compromise legibility:

2x2 : Impossible.

3x3 : Technically possible, but unreadable.

4x4 : Not enough to draw "E", "M" or "W" properly.

5x5 : This font.

Five by five is actually big enough to draw most lowercase letters one pixel smaller, making them visually distinct from uppercase.

Narrower 4x5 and 3x5 dimensions are possible , but would require sacrificing the M, dotted zero, and reduce U/V/Y distinctiveness.

There's no artistic reason to make all characters five wide just because a few must be...…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.