Monospaced font

Comparison between variable-width fonts and monospaced fonts

A monospaced font, also called a fixed-pitch, fixed-width, or non-proportional font, is a font whose letters and characters each occupy the same amount of horizontal space.[1][a] This contrasts with variable-width fonts, where the letters and spacings have different widths.

Monospaced fonts are customary on typewriters and for typesetting computer code.

Monospaced fonts were widely used in early computers and computer terminals, which often had extremely limited graphical capabilities. Hardware implementation was simplified by using a text mode where the screen layout was addressed as a regular grid of tiles, each of which could be set to display a character by indexing into the hardware's character map. Some systems allowed colored text to be displayed by varying the foreground and background color for each tile. Other effects included reverse video and blinking text. Nevertheless, these early systems were typically limited to a single console font.

Even though computers can now display a wide variety of fonts, the majority of IDEs and software text editors employ a monospaced font as the default typeface. This increases the readability of source code, which is often heavily reliant on distinctions involving individual symbols, and makes differences between letters more unambiguous in situations like password entry boxes where typing mistakes are unacceptable.[2] Monospaced fonts are also used in terminal emulation and for laying out tabulated data in plain text documents. In technical manuals and resources for programming languages, a monospaced font is often used to distinguish code from natural-language text. Monospaced fonts are also used by disassembler output, causing the information to align in vertical columns.

Optical character recognition has better accuracy with monospaced fonts. Examples are OCR-A and OCR-B.

The term modern is sometimes used as a synonym for monospace generic font family. The term modern can be used for a fixed-pitch generic font family name, which is used in OpenDocument format (ISO/IEC 26300:2006) and Rich Text Format.[3][4]

Examples of monospaced fonts include Courier, Lucida Console, Menlo, Monaco, Consolas, Inconsolata and Source Code Pro.

  1. ^ Rosendorf, Theodore (2009). The Typographic Desk Reference. New Castle, Delaware: Oak Knoll Press. p. 12. ISBN 978-1-58456-231-3.
  2. ^ Spolsky, Joel (24 October 2001). "User Interface Design For Programmers". Joel On Software. Retrieved 17 November 2014.
  3. ^ OpenDocument v1.1 specification (PDF), retrieved 2010-05-01.
  4. ^ Microsoft Corporation (June 1992), Microsoft Product Support Services Application Note (Text File) – GC0165: RICH-TEXT FORMAT (RTF) SPECIFICATION (TXT), retrieved 2010-03-13.


Cite error: There are <ref group=lower-alpha> tags or {{efn}} templates on this page, but the references will not show without a {{reflist|group=lower-alpha}} template or {{notelist}} template (see the help page).


From Wikipedia, the free encyclopedia · View on Wikipedia

Developed by Nelliwinne