# Monospace fonts for coding

> Fixed-width open-license families for editors and terminals, with clear zeros, several weights and, in most cases, italics.

A programming font is something you look at for hours, so small differences add up. The first requirement is that characters which mean different things look different. Zero against capital O, the digit one against lowercase l and capital I, and the pairs of brackets and braces should all be unmistakable at 12 or 13 pixels. Many coding fonts mark the zero with a slash or a dot for exactly this reason.

After that it is a matter of rhythm and range. Because every character has the same width, narrow letters such as i and l get wide serifs or tails to fill their cell, and how a designer handles that gives each font its texture. A regular and a bold are the minimum for syntax highlighting; a true italic is useful for comments. Lighter weights tend to look better on high-density displays, heavier ones on older monitors. Some fonts add programming ligatures, which draw sequences such as an arrow as one symbol; whether that helps is a personal call, and editors let you switch it off. Check the width too: a narrower design shows more columns in a split view.

How these were chosen: Families in the monospace class tagged for code; pixel and typewriter-style display monospaces are in their own collections.

## Fonts (16)

- [JetBrains Mono](https://trendhub.net/fonts/jetbrains-mono.markdown) (Monospace, 16 styles · variable, OFL): Made for reading and writing code: a marked zero, a serifed capital I and a tailed l, in eight weights with italics.
- [Roboto Mono](https://trendhub.net/fonts/roboto-mono.markdown) (Monospace, 14 styles · variable, OFL): Seven weights with italics and punctuation tuned for source code.
- [Inconsolata](https://trendhub.net/fonts/inconsolata.markdown) (Monospace, 8 styles · variable, OFL): First drawn for printed code listings, with a slashed zero; now variable in weight and width, upright only.
- [IBM Plex Mono](https://trendhub.net/fonts/ibm-plex-mono.markdown) (Monospace, 14 styles, OFL): A marked zero and slab-like feet on i, l and r keep look-alike characters apart; seven weights with italics and Cyrillic.
- [Source Code Pro](https://trendhub.net/fonts/source-code-pro.markdown) (Monospace, 16 styles · variable, OFL): Variable from ExtraLight to Black with italics, the coding companion to an interface sans.
- [Fira Code](https://trendhub.net/fonts/fira-code.markdown) (Monospace, 5 styles · variable, OFL): Adds programming ligatures that draw common operator sequences, such as arrows, as single symbols.
- [Geist Mono](https://trendhub.net/fonts/geist-mono.markdown) (Monospace, 18 styles · variable, OFL): A slashed zero, a flat-based i and a curved-foot l separate look-alikes; nine weights with italics and Cyrillic.
- [Cascadia Code](https://trendhub.net/fonts/cascadia-code.markdown) (Monospace, 12 styles · variable, OFL): Six weights with italics, with Arabic, Hebrew, Cyrillic and Greek alongside Latin.
- [Victor Mono](https://trendhub.net/fonts/victor-mono.markdown) (Monospace, 14 styles · variable, OFL): A narrow design with semi-connected cursive italics and programming ligatures, in seven weights.
- [DM Mono](https://trendhub.net/fonts/dm-mono.markdown) (Monospace, 6 styles, OFL): A slashed zero and a tailed l in three weights with italics; Medium is the heaviest, so there is no true bold for highlighting.
- [Ubuntu Mono](https://trendhub.net/fonts/ubuntu-mono.markdown) (Monospace, 4 styles, UFL): Regular and Bold with true italics for terminals and code.
- [Anonymous Pro](https://trendhub.net/fonts/anonymous-pro.markdown) (Monospace, 4 styles, OFL): Four fonts made for coding, with clearly separated 0, O, 1, l and I.
- [Red Hat Mono](https://trendhub.net/fonts/red-hat-mono.markdown) (Monospace, 10 styles · variable, OFL): Geometric round letters with a slashed zero, variable from Light to Bold with italics.
- [Noto Sans Mono](https://trendhub.net/fonts/noto-sans-mono.markdown) (Monospace, 9 styles · variable, OFL): A slashed zero, a footed i and a tailed l, with a width axis that narrows the cell to fit more columns; nine weights, no italics.
- [Martian Mono](https://trendhub.net/fonts/martian-mono.markdown) (Monospace, 8 styles · variable, OFL): Broad letters with squared-off curves and a large x-height; a width axis condenses the cell, and weights run from Thin to ExtraBold with Cyrillic.
- [Atkinson Hyperlegible Mono](https://trendhub.net/fonts/atkinson-hyperlegible-mono.markdown) (Monospace, 14 styles · variable, OFL): Drawn so that 0, O, 1, l and I are easy to tell apart; seven weights with italics.

## FAQs

### Which of these fonts have programming ligatures?

The note on each font mentions ligatures only where its record lists them. If you prefer plain characters, most editors have a setting to disable font ligatures.

### How do I install a coding font in my editor?

Download the family, install the files in your operating system, then enter the family name in the editor or terminal font setting. Restart the application if the name is not recognized at once.

### Can I use these fonts in a commercial product or a paid course?

Their open licenses allow commercial use, including in screenshots, videos and embedded in software. Each font page states its license.

### Is a monospace font good for body text?

For short passages, yes; for long reading, no. Equal widths make words less distinct. Pair the monospace with a proportional family for prose.

## Related collections

- [Type systems with matching sans, serif and mono families](https://trendhub.net/fonts/for/matching-sans-serif-and-mono-families.markdown)
- [Typewriter fonts](https://trendhub.net/fonts/for/typewriter-fonts.markdown)
- [Pixel and arcade fonts](https://trendhub.net/fonts/for/pixel-and-arcade-fonts.markdown)
- [Clean sans-serif fonts for app interfaces](https://trendhub.net/fonts/for/app-interface-fonts.markdown)
- [Squared sans-serif fonts for tech and game interfaces](https://trendhub.net/fonts/for/tech-and-game-interface-fonts.markdown)
- [Variable fonts with a width axis](https://trendhub.net/fonts/for/variable-fonts-with-a-width-axis.markdown)

---

Source: https://trendhub.net/fonts/for/monospace-fonts-for-coding (trendhub)
