Fonts for monospace
A monospace font is an environment, not just a typeface. It is what you stare at for eight hours a day if you write code or operate a terminal. Picking one well repays itself thousands of times over. The list below collects the most respected fixed-width designs in the open-source catalog.
50 open-source families · page 1 of 1
Editor's pick
Read the curated buyer guide →
How to choose a monospace typeface
Monospace typefaces are a constraint-driven design discipline. Every glyph in a monospaced design — a wide M, a narrow i, a punctuation mark, a numeral — has to occupy the same horizontal advance. That sounds like a small constraint, but it cascades through every decision the designer makes, from the proportions of the lowercase to the shape of the curly braces and the height of the asterisk.
The TypeCraft monospace collection is built for the people who actually live inside monospaced type: programmers, system administrators, technical writers, and designers laying out tabular data. The faces in this list have been chosen because they solve the unglamorous problems of code typography. Confusable characters — 1 and l and I, 0 and O, semicolons and colons — are visibly distinct. Punctuation is heavy enough to survive aggressive syntax highlighting. The descenders and ascenders give enough vertical breathing room that the line spacing in a code editor does not feel claustrophobic.
If you are choosing a coding font, install two or three of these families and live in each one for a working day. Things you will not notice in a screenshot — how your eyes feel after eight hours, how a long stack trace reads, how the punctuation looks under your editor's theme — are the things that actually decide whether a coding font is right for you. See our 20 best monospace Google Fonts for coding for a working developer's shortlist.