Monospace fonts: what they are and when to use one
Monospace fonts give every character the same width. See why typewriters needed them, the history of Courier and Courier New, and which one to use.
Monospace fonts are fonts in which every character takes up the same horizontal space: the i is as wide as the m, and so are the comma and the space. They come from the typewriter, where one fixed step per keystroke was the only spacing the mechanism could do, and the best known of them is still a typewriter face, Courier.
What monospace fonts are
In most fonts each character has its own width. Those are proportional fonts, and they are what books, websites and word processors use by default. A monospaced font gives every character an identical cell. The same thing is called fixed-width, fixed-pitch or non-proportional.
The quick test is to type two lines, one under the other:
iiiiiiiiii
mmmmmmmmmm
In a monospace font the two lines are exactly the same length. In a proportional font the second is several times longer.
Fixed cells make text behave like a grid. Ten characters always take the same width, so columns line up from one line to the next without tabs or tables.
Why typewriters were monospaced
A standard typewriter moves its carriage one step after each keystroke, and every step is the same size. The part that does it, the escapement, releases one tooth of a wheel per key, with no way of knowing which letter was struck. How a typewriter works describes it in detail.
So type designers worked backward from the step. Narrow letters such as i and l were given wide serifs to fill their cell, and wide letters such as m and w were squeezed. That is where the typewriter look comes from.
The step also set the type sizes. A machine that stepped a tenth of an inch printed 10 characters per inch, called pica, and one that stepped a twelfth printed 12, called elite. Those sizes are covered in pica vs elite.
Proportional spacing on a typewriter needed a mechanism that could step different distances for different keys. An electric office typewriter that did so went on sale in 1944, but most typewriters stayed monospaced.
Early computers kept the grid for a different reason. Their screens worked in text mode, a fixed grid of character cells, which made the hardware simpler. Terminals, and later programming editors, inherited it.
Courier font: who designed it and when
Courier is the monospace font most people know by name.
- Designer: Howard Kettler, known as Bud.
- Maker: IBM, which commissioned it for its electric typewriters.
- Year: the mid 1950s. Sources differ on whether it was published in 1955 or 1956.
- Name: it was nearly released as Messenger. Kettler preferred Courier, a word he felt carried more dignity than an ordinary messenger.
IBM did not trademark the name. Other makers were free to produce their own Courier, and many did, which is why there are so many fonts with Courier in the name and why they do not all look alike.
When IBM introduced its typeball machine in 1961, Courier was adapted for the new type element. Some accounts say the type designer Adrian Frutiger had a hand in a later version. The design historian Paul Shaw says that is a confusion with Frutiger's work adapting another of his typefaces for the same machines, and that Frutiger had nothing to do with Courier. We have left the claim out of the summary above for that reason.
Courier New
Courier New is the digital version most computers carry. Monotype produced it, and Microsoft shipped it as a system font starting with Windows 3.1. On paper it looks thin and light next to typewritten Courier. The usual explanation is that it was digitized directly from the metal type element of the typeball typewriter, not from its printed result.
For many years 12 point Courier New was the standard typeface of the United States State Department. It was replaced by 14 point Times New Roman in 2004.
Courier remains the standard for screenplays, which are written in 12 point Courier or a close variant so that a page holds a predictable amount. Several heavier versions exist for people who find Courier New too faint, among them Courier Prime, released in 2013 under an open licence for screenwriters.
In Courier and Courier New, a character is six tenths as wide as the point size, so 12 point Courier types 10 characters to the inch, exactly like a pica typewriter.
Common monospace fonts and their uses
Font names here are for identification. Which one reads best is a matter of taste and of the screen it is shown on.
| Font | Origin | Where you find it | Typical use |
|---|---|---|---|
| Courier New | Monotype's digital Courier | Windows since version 3.1 | Typewritten look, forms, manuscripts |
| Courier Prime | Alan Dague-Greene, 2013, open licence | Free download | Screenplays |
| Consolas | Luc(as) de Groot, shipped with Windows Vista and Office 2007 | Windows | Code and terminals |
| Menlo | Jim Lyles and Charles Bigelow, 2009 | macOS since Snow Leopard | Code and terminals |
| DejaVu Sans Mono | The DejaVu project, 2004, derived from Bitstream Vera | Included by default in several Linux distributions | Code and terminals |
| Source Code Pro | Paul D. Hunt for Adobe, 2012, open licence | Free download | Code |
| Cascadia Code | Aaron Bell for Microsoft, 2019, open licence | Windows Terminal | Terminals and code |
Monospace type is also used where machines do the reading: optical character recognition is more accurate with fixed-width type, and the OCR-A and OCR-B fonts were made for it.
Many programming fonts add details that Courier New lacks, such as a slashed or dotted zero so that 0 and O cannot be confused. Consolas has a slashed zero, for example.
On a web page, the generic CSS family monospace asks the browser for whatever monospace font the reader's system provides. In a word processor, pick one of the fonts above by name.
When to use a monospace font
Use one when alignment or exactness matters more than reading speed.
- Source code and terminals. Indentation and columns stay aligned, and similar characters are easier to tell apart. Most code editors default to a monospace font.
- Plain text tables. Columns of figures line up without a table tool.
- Screenplays and manuscripts. Fixed width makes page length predictable, which is the point of the format.
- Passwords, codes and serial numbers. Every character is distinct and evenly spaced.
- Text that should look typewritten. A letter, a label, a prop or a poster.
- Sequence data and tablature. Biologists set DNA and protein sequences in monospace, and guitar tablature depends on vertical alignment.
Choose a proportional font for long passages of ordinary reading. If you only need numbers to line up in a column, many proportional fonts include tabular figures, digits that all share one width, which do that job without changing the rest of the text.
Monospace is not the same as typewriter style
A font can look like a typewriter without being monospaced. American Typewriter keeps the typewriter letterforms but spaces them proportionally, as explained in the American Typewriter font. If you want columns to align or a page to match a real machine, check that the font is truly fixed-width. Which fonts look like a typewriter compares the options.
A font also cannot reproduce uneven ink or a slightly raised letter. For that, type on the online typewriter, turn a line into an image with the typewriter font generator, or set a whole document with text to PDF.
Sources
Questions people ask
- What is a monospace font?
- A monospace font gives every character the same horizontal space, so a narrow i takes as much room as a wide m. It is also called a fixed-width, fixed-pitch or non-proportional font.
- Why were typewriters monospaced?
- The carriage of a standard typewriter moved the same distance after every keystroke, whatever the letter. Type had to be designed to fit that single width. Proportional spacing needed a more complicated mechanism and reached office typewriters only in the 1940s.
- Who designed the Courier font?
- Howard Kettler designed Courier for IBM's typewriters in the mid 1950s. Sources give the year as 1955 or 1956. IBM did not trademark the name, which is why so many versions of Courier exist.
- What is the difference between Courier and Courier New?
- Courier is the original typewriter face. Courier New is a digital version produced by Monotype and shipped as a system font from Windows 3.1 onward. Courier New is noticeably thinner, which is attributed to its being digitized from the type element of an electric typewriter.
- When should I use a monospace font?
- Use one where characters have to line up in columns or be told apart exactly: source code, terminals, plain text tables, screenplays and anything meant to look typewritten. For long passages of ordinary reading, a proportional font is the usual choice.
- Are all typewriter fonts monospaced?
- No. Some typefaces imitate typewriter letterforms but space them proportionally. American Typewriter is the best known example.