44

For use in Photoshop, I'm looking for a font that's exactly 5 px high but still readable. I tried some system fonts myself like Arial, Tahoma, Segoe UI but it all results in a pixely mess.

enter image description here

Ideally the font will use their space optimally and make words like 'ISDN' readable like this: enter image description here

This specifically needs to be 5px. So Which typeface is suitable for marking of wires? doesn't answer my question

9
  • 5
    have you googled for "pixel fonts"? there are many of them on small sizes, you might find one that suits your needs.
    – Luciano
    May 15, 2017 at 8:53
  • Possible duplicate, at least similar: graphicdesign.stackexchange.com/q/82634/41100
    – PieBie
    May 15, 2017 at 9:01
  • 1
    @PieBie that's for print not 'web'. Also this is specifically for 5px height. May 15, 2017 at 9:27
  • 1
    You say you have tried some system fonts. Have you tried "Small Fonts"?
    – kolrabi
    May 15, 2017 at 11:08
  • 2
    Must it be a bitmap font with just 2 colours (background and foreground)? Or may you use more than 2, and thus anti-alias?
    – Rosie F
    May 15, 2017 at 15:34

8 Answers 8

53

If the 5x5 pixel font suggested by Cai and mayersdesign is still too large, you could try the 4x5 pixel font I made a few years ago for a challenge on another SE site.

The original version included only the letters A to Z and the . and ! characters, but I just made an actual TTF version of the font (using an online tile-based font editor) that includes all printable ASCII characters. (No accented letters or fancy non-ASCII punctuation yet, though, and the lowercase letters are identical to the uppercase.)

In fact, I made two versions: one with variable letter spacing, and one that's monospace. Here's what they look like (at 200% size):

CG pixel 4x5 font
(direct download)

CG pixel 4x5 mono font
(direct download)

I haven't tested these fonts in Photoshop, but they do work just fine in GIMP: just set the font size to (a multiple of) 5px, and line spacing to 1px or more.

Also, I've released these fonts into the public domain (via CC-Zero), so you can do whatever you want with them. In particular, if you don't like some of the design choices I made (like the slashed zero, or the serifless capital I) or just want to add more glyphs, you're free to clone the font and edit it yourself to suit your needs; the online editor is pretty easy to use.


Ps. I went and made a couple of even smaller variants of this font:

CG pixel 3x5 font
(direct download)

CG pixel 3x5 mono font
(direct download)

At 3x5 pixels, this is about as small as a pixel font can get and still remain legible. It also, not entirely coincidentally, looks very similar to just about every other 3x5 pixel font out there.

Even at this size, some of the glyphs (especially the more complex punctuation symbols like &, @, # and *) suffer a bit, and some creative solutions (like the minuscule-style N) are necessary to keep all the shapes distinct. Still, it's more or less readable, even if some of the letters may be ambiguous if used on their own without context (such as the M, which could be mistaken for an N or an H).

Of course, you're also free to tweak this font any way you like, or even to design your own.

7
  • 1
    I don't know why but that looks a lot like the font used on TI-82 to TI-84 calculators, to draw text over graphs. May 16, 2017 at 1:06
  • 19
    @IsmaelMiguel every 3x5 font looks like that. May 16, 2017 at 10:44
  • @AJMansfield Nothing against, just wanted to point it out. But maybe you're right. Still, it is fun. It does reming me of the days I used to spend my time programming on my TI-83, instead of paying attention to math. Going back on topic, I'm not an "expect" in 3x5 fonts (or fonts in general) and just wanted to point that out. May 16, 2017 at 12:42
  • 2
    @IsmaelMiguel It does indeed remind me of that too, sitting in the back of math class and programming my TI-84. May 16, 2017 at 12:45
  • 1
    @Michael: Oh, I didn't realize it did that. :( I've uploaded the zipped .ttf files to my own website, and added links to them above. May 16, 2017 at 18:07
33

You're going to have trouble with most fonts at that small a size. Some will have better hinting than others and be OK, but you're unlikely to find anything that perfectly works...

What you really need is a font designed specifically to work at that size. Bitmap fonts are fonts designed as actual raster images for a specific size; Photoshop has bitmap font support in more recent version so that may be an option... otherwise you just search for "pixel fonts" to find normal vector fonts that are designed to simulate a pixel grid. This was the first result for a search of "5px pixel font":

http://www.dafont.com/5x5-pixel.font

enter image description here

25

The font 5x5 which is happily free (for personal use), is made specifically for 5px font heights.

enter image description here

8
  • with accents! that's a good one
    – Luciano
    May 15, 2017 at 10:18
  • 3
    Unfortunately, the accents don't actually fit inside the 5x5 pixel box. I was wondering how that was possible, but it turns out it isn't. :( May 15, 2017 at 11:48
  • 1
    @Ilmari Karonen - Rats! Although I suppose it's kind of obvious really. If you left a pixel for spacing that would leave... well...it just wouldn't work haha, but still a very small and legible font with accents! May 15, 2017 at 13:00
  • 4
    You could add accents after the character they accent. I may have seen it done already back when Atari ST was still a thing. May 15, 2017 at 14:55
  • 3
    At least on the site you've linked, the font is listed as "free for personal use" (emphasis mine) and not simply free -- that'll make a difference for some folks. Then again, those font sites are IMHO pretty bad about changing license terms (both directions)
    – A C
    May 15, 2017 at 21:11
15

Berkelium 1541 is a TrueType conversion of the proportional pixel font used by the GEOS operating system on the Commodore 64 to label files and other icons on the desktop.

The text Berkelium 1541 / ISDN E18 scaled up 4 times in that font:

enter image description here

4

I know this post is a little bit late, but I just thought that this might help anyone out that just happens to be looking for a 5 by 3 pixel font. The Terminal font has really good 5 by 3 uppercase letters and numbers, however the lowercase letters are not all 5 by 3 pixels (shown with the red line in the image.) Terminal font uppercase letters compared to lowercase letters

1
  • 1
    I like it! Where can I find this font? Feb 13, 2021 at 19:58
2

Windows' own "small fonts" at 4 or 5pt size seems to come out quite well, though you might have to pick and choose what characters look OK and which don't. If it's actually rendered properly (you may have to turn off Cleartype, or even use Paint in 1-bit monochrome colour more) then it should come out looking a bit like Berkelium above, which isn't far off a minimum-size hand-tuned face I used to use (either zoomed in and hand-pixeling, or with lots of high speed copy and paste) for putting very small text onto low resolution images.

There's so little space for conveying information in that tiny 5x5 (or 5xless) grid that you have to get a bit creative with letter shapes in some cases, like the "e" in Berkelium (it also has interesting lowercase "a" and "s" shapes IIRC), for each one to be both readable and identifiably unique. And it may well be useful to use proportional width, so you can save on pixels with thinner letters in order to spend them on those where extra width is necessary.

As someone hinted at in passing above, the 6x6 system font used on the Atari ST (for drive and uppercase file labels in the main, with 8x8 or 8x16 used elsewhere, though not exclusively) may also be worth your attention. It's essentially 5x5 the same way that the others are essentially 7x7 and 7x15, as they have vertical and horizontal spacing built in for all but the deepest descenders and box-drawing characters. Notably ISTR the e's and a's lacked openings in their loops, but they were still recognisable (and as demonstrated, if you end up modifying them into a custom typeface, you can fix that).

Other than that the smallest you tend to get in common use is 6x6 or 6x8, with or without surrounding space, or 5x7 on some dot matrix LCDs. It's hard to make a decent font with any kind of character to it rather than pure robotic functionality with fewer pixels (indeed the other examples given above feel rather familiar, as they're either identical or very similar to ones I've seen used regularly on low-rez mobile phone LCDs back in the late 90s/early 2000s). Similar to how it can be difficult to make letters (and certainly to have a choice over using upper or lower case) with 7-segment numeric LCDs, and it's not much better with 9 or 11(+) segment. And 5x5 pixel is essentially 25-segment, except really it's more like a slightly more flexible kind of 11 or 15 seg. That's the kind of constraint you're working with here.

If you can stand it, just plonk the pixels by hand... at least you have ultimate control over the hinting/kerning, then, which as mentioned by others is probably going to be your biggest issue unless your font engine is specifically tuned for, or can have an option set to tune for pixel based rendering of small typefaces, rather than assuming everything is infinite-resolution vector and of a decent size. (if you scaled up a tiny pixel font to a normal size and morphed full-size type to conform to its critical boundaries, it would look quite strange, the same as trying to cram a large face down to minimal pixels - your minimum spacing granularity is ENORMOUS vs the actual glyphs)

0
2

5 px height is a critical point for readability and if it also must be single color only, it is next to impossible to get a good legible text. That means if one takes the limit of 6 px instead of 5 px, it can be significantly better, because ascenders and descenders need at least 1 px space and with 5 px it is impossible.

I have made a 5 px font, it is quite legible but still hard to read. Although I find it significantly better readable than the mentioned "5x5" font. It is not a .ttf font, but if you know scripting in Photoshop you could write a function which converts strings into pixel arrays.

Example:

enter image description here

Compared to "5x5" (taken the example from Mayersdesign's answer):

enter image description here

What I find interesting by designing small fonts, one can immediately notice unfortunate design of some letters, i.e. similarity of "e" and "c", and the whole [b-d-p-q-h-n-u] group actually.

2

The best 3×5 px font I've seen is “Tom Thumb”:

a

This is the first 5px high font I've found that has good looking lowercase letters, though some letters like M and N (and especially #, @, &, and ~) are not as readable as they would be if they were 4 or 5 pixels wide.

Here's the modified, non-monospaced version that I've been using: https://fontstruct.com/fontstructions/show/1604078/tom-thumb-modified

enter image description here

1
  • Welcome to Graphic Design SE and thank you for your answer. Please consider making your answer even better by editing it to summarise some of the advantages and drawbacks of that font, in particular those that are not obvious from looking at the sample.
    – Wrzlprmft
    Feb 2, 2019 at 15:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.