published · 7 min read
Which Code Font Keeps Its Look-Alikes Apart at 9 Pixels?
Pixel tests on 0/O, 1/l/I and friends at 9 to 12 px, and how much FreeType's hinting reorders the list.

An AI agent drafted this from my projects, agents ran the measurements, and another agent checked the draft claim by claim against the code and the run records or briefs that were kept. The projects and opinions are mine.
Drop your terminal font to 9 pixels to fit one more pane and somewhere on the way down 0 and O start to look alike. You find out when a string doesn't match. Bitcoin's address alphabet was built around this, and the comment in the source says why: "Don't want 0OIl characters that look the same in some fonts".
Kubet Mono, a monospace font for code and terminals, is my own, and I have numbers on this from the scorer behind it. An agent loop built that scorer, and it put 17 monospace fonts through identical pixel tests at real terminal sizes. On these tests, most unhinted scores barely change with size, and turning hinting on is what reorders the list.
My project chose these metrics, and Kubet Mono's own scorer produced them. They're pixel proxies, and they haven't been validated against human reading. My font was tuned against these tests, so discount its row. I've left the project's AI judge out of this: an AI judge is not a human study, and it only compared Kubet Mono with references. The nearest outside measurement I found answers a different question: paultendo compared 1,418 Unicode confusable pairs across 230 fonts as 48×48 images in February 2026 (figures a September 2026 release has since replaced), while these tests use ASCII look-alikes at 9 to 16 px.
Scoring two look-alikes
A test renders two look-alikes with FreeType and aligns them, then reports the share of ink that differs: 0 is identical, 1 is nothing in common. There are 52 pairs, and a font's headline is the worst pair in the worst condition. The 17th font is licensed. The notes in my repo record a numbers-only rule but not the license terms, so that font stays out of this post, and the table covers the 15 other open fonts plus Kubet Mono.
Font Worst 0/O 1/l 1/I l/I
Inconsolata 0.1801 .372 .424 .357 .224
Go Mono 0.1742 .242 .548 .341 .357
Kubet Mono (mine) 0.1735 .557 .447 .274 .425
Fira Code 0.1508 .358 .611 .397 .447
Source Code Pro 0.1505 .268 .468 .296 .349
Commit Mono 0.1396 .301 .531 .291 .435
Hack 0.1325 .216 .586 .393 .362
Cascadia Code 0.1315 .264 .395 .254 .401
Noto Mono 0.1314 .283 .450 .494 .171
DejaVu Sans Mono 0.1264 .158 .550 .311 .371
Liberation Mono 0.1190 .165 .477 .363 .411
Iosevka 0.1133 .123 .377 .448 .113
JetBrains Mono 0.1069 .172 .582 .341 .381
Monaspace Neon 0.0778 .079 .252 .299 .134
IBM Plex Mono 0.0690 .087 .328 .348 .133
Ioskeley Mono 0.0585 n/a n/a n/a n/a
Worst is the lowest score on any of the 52 pairs at 9 to 12 px, with no hinting and with light or full hinting, at 1x and 2x, from the 2026-10-29 scorecard (Kubet Mono 0.100, build e4bdce64). Those are CSS pixels: a terminal set to 9 points draws 12 px at 96 dpi, and a Mac draws 9 points as 9 px, or 18 device pixels on a 2x screen. A 2026-10-31 rerun matched, which shows the scorer repeats itself, not that a small gap would survive another renderer. Gaps of 0.0001 mean nothing, and the top three sit within 0.007, about the median amount light hinting moves one font's score at one size.
Pair columns show a pair's lowest score without hinting and with light hinting, at 9 to 16 px and 1x. Those 14 reference rows come from the 2026-10-22 scorecard, the last to save them, and those font files are unchanged since. The reference rows stop there because GitHub rejected my font repo's score history at 106.9 MB, and the repo got a 20 MB limit on tracked files. The loop then moved its full scorecards out of git and kept summaries. Kubet Mono's row comes from the 2026-10-29 weight scorecard, a separate file, on build e4bdce64. Ioskeley Mono has no pair rows.
Reading the table
Inconsolata leads Worst at 0.1801, then Go Mono at 0.1742. My font is third on Worst. It does come first on the mean across the 52 pairs at 9 to 16 px, over all three hinting modes at 1x and 2x (0.6359, ahead of Fira Code's 0.6335), a test it was tuned for. The scorer's Inconsolata is a legacy Medium-weight OTF, version 001.010, so a newer install may differ.
On the last scorecard with pair rows, one pair dominated at 9 to 12 px: n/h was the worst pair in 83 of 112 conditions across 14 fonts (unhinted and light, the 42 pairs then in use, 1x), and 0/O in 22. Both share most of their ink by this metric's definition, which differs from what people confuse: reading research groups n with m and u, and n/u isn't among the 52 pairs. Worst comes from a later run that added full hinting and 2x but saved no pair rows, and it pins the pair for only 9 of the 16 fonts: n/h for five, 0/O for three, l/I for one.
Among the fonts with rows, across 0/O, 1/l, 1/I, l/I, Fira Code has the highest floor at 0.358, then Commit Mono at 0.291. Lowest in these columns are Monaspace Neon (0.079) and IBM Plex Mono (0.087) on 0/O, and Iosevka (0.113) on l/I.
At the bottom of Worst it's all 0/O: Ioskeley Mono at 0.0585 and IBM Plex Mono at 0.0690, both at 11 px with full hinting, and Monaspace Neon at 0.0778, unhinted at 12 px on a 2x screen. IBM Plex Mono's 9 to 16 px mean of 0.6147 sits mid-table, 8th of 16, so that low Worst isn't a general failure. On the older scorecard, 0/O was the font's worst pair in all 8 conditions.
There's a gap in the list too: across all 4,371 printable ASCII pairs at 9 to 16 px, all three hinting modes at 1x, the closest pair for 8 of these 16 fonts is O/Q, which the 52 pairs miss, and my font is one of the eight. On that wider test it's 6th of 16 at 0.1273. The wider test goes back to a commit my Claude Code proxy made on 23 October.
Scores without hinting
This section and the next use the 2026-10-22 scorecard: 14 fonts, the 42 pairs then in use, 9 to 12 px, 1x. Unhinted, the worst pair barely moves from 9 to 12 px for 12 of the 14 fonts. Iosevka and Inconsolata move about 0.02, against a median swing of 0.003 across the 14 fonts. Monaspace Neon and IBM Plex Mono stay the bottom two at all four sizes. Since the score is a share of ink, it can't see that a 9 px letter gives your eye fewer pixels, and flat here doesn't mean equally readable.

Hinting reorders the list

With light hinting, that swing across sizes has a median of 0.025 and reaches 0.059. Compared with unhinted at a matching size, light hinting moved the score by a median of 0.006 and up to 0.060, in both directions. Across 56 font-and-size combinations it raised the worst pair in 29, lowered it in 20, and changed 7 by less than 0.001. Source Code Pro is 10th of 14 at 9 px with light hinting (0.151) and first at 11 px (0.210). JetBrains Mono goes from 12th unhinted at 9 px (0.125) to 5th with light hinting (0.169). Both are TrueType files, so that light hinting is FreeType's auto-hinter, not the hints shipped in the files.

Full hinting has totals only, without per-size rows. Adding it and the 2x renders on the 2026-10-29 scorecard lowers the worst pair for 13 of 16 fonts at 9 to 16 px. At least six of those lows land on full hinting at 1x, and the totals can't place the rest. Ioskeley Mono falls from 0.085 to 0.059, landing on 0/O.
In my project's rendering notes, the Linux default maps to light and hintfull to full. FreeType's docs say light-mode snapping comes from the font driver when the driver and font support it and otherwise from the auto-hinter. In FreeType 2.13.2 the TrueType driver doesn't support it, so for every TrueType file here a light score is FreeType's auto-hinter; CFF-based files keep their own hints in light mode, vertically only. The v40 TrueType interpreter FreeType has enabled by default since 2.7 ignores horizontal hinting instructions, so a score labelled full may not be hinted in both directions. I found no Apple document on macOS, but Qt lists no hinting on macOS for every hinting setting, and FontLab says Apple's renderer has ignored TrueType hints since OS X. That would make unhinted your nearest row, though macOS also darkens small stems and these renders don't. These are grayscale FreeType renders, scored on linear coverage with no gamma; other rasterizers will differ, Windows' DirectWrite among them. Fonts aren't scaled to match either: at 9 px, Inconsolata's x-height is about 4.1 px and JetBrains Mono's about 5.0 px.
Try it on your own font
Set your editor to your usual size and type 0O 1lI nh OQ, then flip your hinting setting if you have one.
Kubet Mono's Regular is public, and the 0.002 download has the same outlines and metrics as the scored 0.100 build.
curl -L -o ~/Library/Fonts/KubetMono-Regular.ttf \
https://github.com/kubet/kubet-mono/releases/latest/download/KubetMono-Regular.ttf
It's under the SIL Open Font License, so it's free to use, ship in anything (web font, app, package) and change. You can't sell the font on its own, and copies you pass on, changed or not, keep the OFL with them.
Downloads and setup: https://github.com/kubet/kubet-mono