HOME

TheInfoList



OR:

A monospaced font, also called a fixed-pitch, fixed-width, or non-proportional font, is a
font In metal typesetting, a font is a particular size, weight and style of a ''typeface'', defined as the set of fonts that share an overall design. For instance, the typeface Bauer Bodoni (shown in the figure) includes fonts " Roman" (or "regul ...
whose letters and characters each occupy the same amount of horizontal space. This contrasts with variable-width fonts, where the letters and spacings have different widths. Monospaced fonts are customary on
typewriter A typewriter is a Machine, mechanical or electromechanical machine for typing characters. Typically, a typewriter has an array of Button (control), keys, and each one causes a different single character to be produced on paper by striking an i ...
s and for
typesetting Typesetting is the composition of text for publication, display, or distribution by means of arranging physical ''type'' (or ''sort'') in mechanical systems or '' glyphs'' in digital systems representing '' characters'' (letters and other ...
computer code. Monospaced fonts were widely used in early
computer A computer is a machine that can be Computer programming, programmed to automatically Execution (computing), carry out sequences of arithmetic or logical operations (''computation''). Modern digital electronic computers can perform generic set ...
s and
computer terminal A computer terminal is an electronic or electromechanical hardware device that can be used for entering data into, and transcribing data from, a computer or a computing system. Most early computers only had a front panel to input or display ...
s, which had limited graphical capabilities. Hardware implementation was simplified by using a
text mode Text mode is a computer display mode in which content is internally represented on a computer screen in terms of characters rather than individual pixels. Typically, the screen consists of a uniform rectangular grid of ''character cells'', ea ...
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 Console may refer to: Computing and video games * System console, a physical device to operate a computer ** Virtual console, a user interface for multiple computer consoles on one device ** Command-line interface, a method of interacting with ...
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 In computing, source code, or simply code or source, is a plain text computer program written in a programming language. A programmer writes the human readable source code to control the behavior of a computer. Since a computer, at base, only ...
, 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. 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 A disassembler is a computer program that translates machine language into assembly language—the inverse operation to that of an assembler. The output of disassembly is typically formatted for human-readability rather than for input to an asse ...
output, causing the information to align in vertical columns.
Optical character recognition Optical character recognition or optical character reader (OCR) is the electronics, electronic or machine, mechanical conversion of images of typed, handwritten or printed text into machine-encoded text, whether from a scanned document, a photo ...
has better accuracy with monospaced fonts. Examples are
OCR-A OCR-A is a font issued in 1966 and first implemented in 1968. A special font was needed in the early days of computer optical character recognition, when there was a need for a font that could be recognized not only by the computers of that day, b ...
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 The Open Document Format for Office Applications (ODF), also known as OpenDocument, standardized as ISO 26300, is an open file format for word processor, word processing documents, spreadsheets, Presentation program, presentations and ...
format (ISO/IEC 26300:2006) and
Rich Text Format ) As an example, the following RTF code would be rendered as follows: This is some bold text. Character encoding A standard RTF file can only consist of 7-bit ASCII characters, but can use escape sequences to encode other characters. ...
. Examples of monospaced fonts include
Courier A courier is a person or organization that delivers a message, package or letter from one place or person to another place or person. Typically, a courier provides their courier service on a commercial contract basis; however, some couriers are ...
, Lucida Console, Menlo,
Monaco Monaco, officially the Principality of Monaco, is a Sovereign state, sovereign city-state and European microstates, microstate on the French Riviera a few kilometres west of the Regions of Italy, Italian region of Liguria, in Western Europe, ...
, Consolas, Inconsolata, PragmataPro and
Source Code Pro Source Code Pro is a monospaced sans serif typeface created by Paul D. Hunt for Adobe Systems. It is the second open-source font family from Adobe, distributed under the SIL Open Font License. Source Code Pro (2012) Source Code Pro is a set ...
.


Use in art

Multiple art forms have developed within computers' and typewriters' monospaced typographic settings in which the ''n''th character of every line align vertically with each other. (Such a group of characters is sometimes called a column.) A proportional and monospaced font's reproduction of an element of ANSI art, line drawing, is illustrated below. The failure of a proportional font to reproduce the desired boxes above motivates monospaced fonts' use in the creation and viewing of
ASCII ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
and
ANSI The American National Standards Institute (ANSI ) is a private nonprofit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States. The organiz ...
art. Some poetry composed monospaced on typewriters or computers also depends on the vertical alignment of character columns. E. E. Cummings' poetry is often set in monospaced type for this reason. Some classic video games (e.g. Rogue and
NetHack ''NetHack'' is an open source single-player roguelike video game, first released in 1987 and maintained by the NetHack DevTeam. The game is a fork of the 1984 game ''Hack'', itself inspired by the 1980 game '' Rogue''. The player takes the role ...
) and those imitating their style (e.g. Dwarf Fortress) use a monospaced grid of characters to render their state for the player. ''Quiz Show'' (1976) is believed to be the first video game to use 8×8 monospaced "arcade font", which got widely adopted by computer games of the time.


Tabular figures

Many fonts that generally are not monospaced have numerals that are known as tabular figures. As tabular spacing makes all numbers with the same number of digits the same width, it is used for typesetting documents such as price lists, stock listings and sums in mathematics textbooks, all of which require columns of numbers to line up on top of each other for easier comparison. Tabular spacing is also a common feature of simple printing devices such as
cash register A cash register, sometimes called a till or automated money handling system, is a mechanical or electronic device for registering and calculating transactions at a point of sale. It is usually attached to a Cash register#Cash drawer, drawer fo ...
s and date-stamps. Fonts intended for professional use in documents such as business reports may also make the bold numbers take up the same width as the numbers in regular style; the consistency between styles is called " duplexing". The alternative to tabular spacing is proportional spacing, which places the numbers closely together, reducing empty space in a document, and is thought to allow the numbers to blend into the text more effectively. With modern fonts using the TrueType or
OpenType OpenType is a format for scalable computer fonts. Derived from TrueType, it retains TrueType's basic structure but adds many intricate data structures for describing typographic behavior. OpenType is a registered trademark of Microsoft Corpora ...
formats, it is possible to include both proportional and tabular figures in the same font file, and choose between them using font options settings in applications such as
word processor A word processor (WP) is a device or computer program that provides for input, editing, formatting, and output of text, often with some additional features. Early word processors were stand-alone devices dedicated to the function, but current word ...
s or web browsers.


Other uses

In
biochemistry Biochemistry, or biological chemistry, is the study of chemical processes within and relating to living organisms. A sub-discipline of both chemistry and biology, biochemistry may be divided into three fields: structural biology, enzymology, a ...
, monospaced fonts are preferred for displaying
nucleic acid Nucleic acids are large biomolecules that are crucial in all cells and viruses. They are composed of nucleotides, which are the monomer components: a pentose, 5-carbon sugar, a phosphate group and a nitrogenous base. The two main classes of nuclei ...
and
protein Proteins are large biomolecules and macromolecules that comprise one or more long chains of amino acid residue (biochemistry), residues. Proteins perform a vast array of functions within organisms, including Enzyme catalysis, catalysing metab ...
sequences, as they ensure that the representation of every
nucleotide Nucleotides are Organic compound, organic molecules composed of a nitrogenous base, a pentose sugar and a phosphate. They serve as monomeric units of the nucleic acid polymers – deoxyribonucleic acid (DNA) and ribonucleic acid (RNA), both o ...
or
amino acid Amino acids are organic compounds that contain both amino and carboxylic acid functional groups. Although over 500 amino acids exist in nature, by far the most important are the 22 α-amino acids incorporated into proteins. Only these 22 a ...
occupies the same amount of space. Alignment of the letters makes it easier to compare different sequences visually. Both
screenplays A screenplay, or script, is a written work produced for a film, television show (also known as a ''teleplay''), or video game by screenwriters (cf. ''stage play''). Screenplays can be original works or adaptations from existing pieces of writ ...
and
stage play A play is a form of drama that primarily consists of dialogue between characters and is intended for theatrical performance rather than mere reading. The creator of a play is known as a playwright. Plays are staged at various levels, ranging ...
scripts frequently use monospaced fonts, to make it easier to judge the time a script will last for from the number of pages. The industry standard is 12 point
Courier A courier is a person or organization that delivers a message, package or letter from one place or person to another place or person. Typically, a courier provides their courier service on a commercial contract basis; however, some couriers are ...
. A tradition holds that, on this format, one page of script will take one minute of screen or stage time. Monospaced fonts are frequently used in
tablature Tablature (or tab for short) is a form of musical notation indicating instrument fingering or the location of the played notes rather than musical pitches. Tablature is common for fretted stringed instruments such as the guitar, lute or vihuel ...
music for guitar and bass guitar. Each line in a tabulature represents a guitar string, which requires that chords played across multiple strings be tabbed in vertical sequence, a feat accomplished only with the predictability of fixed width.


See also

* List of monospaced typefaces *
Duospaced font A duospaced font (also called a duospace font) is a fixed-width font whose letters and characters occupy either of two integer multiples of a specified, fixed horizontal space. Traditionally, this means either a single or double character width, a ...
*
Mathematical Alphanumeric Symbols Mathematical Alphanumeric Symbols is a Unicode block comprising styled forms of Latin alphabet, Latin and Greek alphabet, Greek letters and decimal numerical digit, digits that enable mathematicians to denote different notions with different l ...


Notes


References

{{DEFAULTSORT:Monospaced Font Typesetting