Monospaced fonts: why code uses them, and when they work in regular design
In a monospaced font, every character takes up the same horizontal space. An "i" is as wide as an "m." That property comes from typewriters and early computer terminals, and it still has real advantages.
Why programmers use them
- Alignment: columns of code, indentation and tables line up precisely.
- Distinguishing characters: good coding fonts clearly separate easily confused characters, such as 0 and O, or 1, l and I.
- Predictable width: makes it easy to count characters and spot errors.
- Tooling: many code editors and terminals expect fixed-width text.
Where they work in design
- Technical and developer-facing brands: signals precision and "made by engineers."
- Data and tabular content: numbers line up. Note that many proportional fonts also offer tabular figures as an OpenType feature, which solves the alignment issue without full monospace.
- Retro or typewriter aesthetics.
- Labels, metadata, captions: small doses add texture and contrast against a proportional body font.
Where they struggle
- Long reading: uneven visual rhythm (narrow letters surrounded by too much space, wide letters squeezed) can make paragraphs tiring.
- Space efficiency: monospace text takes more horizontal room.
Pairing tip A monospaced font paired with a clean proportional sans or serif is a common way to add a technical accent without hurting readability.
What is your favourite coding font? Have you used a monospaced font for something other than code?
Comments · 3
Alignment in code matters. Monospaced fonts make columns line up and indentation obvious.
Ligatures in code fonts like Fira Code or JetBrains Mono are polarising. I love them, others hate them.
Monospaced type is brilliant for tables of numbers, receipts and labels. Gives a deliberate utility look.