ArticleslgStudy

computer science

Computer Modern

Computer Modern is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Computer Modern rather than just read about it. In short: Computer Modern is the original family of typefaces used by the typesetting program TeX. It was created by Donald Knuth with his Metafont program, and was most recently updated in 1992.

Computer Modern — main illustration
Computer Modern — illustration

Key takeaways

  • Computer Modern belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Computer Modern to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Computer Modern from memory before moving on to harder problems.

Reference excerpt

Computer Modern is the original family of typefaces used by the typesetting program TeX. It was created by Donald Knuth with his Metafont program, and was most recently updated in 1992. Computer Modern and its variants remain very widely used in scientific publishing, especially in disciplines that make frequent use of mathematical notation.

Design

Computer Modern is a typeface in the Scotch Roman class, similar to Didone typefaces, having high stroke contrast (variation between thick and thin) and a vertical axis but bracketed serifs. Computer Modern was specifically based on the 10 point size of Lanston Monotype Company's Modern Extended 8A, part of a family Monotype originally released in 1896. This was one of many "modern" classes of typeface issued by typefounders around this period, and that then became standard style for body text printing in the late 19th century. In creating the TeX publishing system, Knuth was influenced by the history of mathematics and a desire to achieve the "classic style" of books printed in metal type. "Modern" faces were used extensively for printing mathematics, especially before Times New Roman became popular for mathematics printing in the 1950s. The most unusual characteristic of Computer Modern, however, is the fact that it is a complete type family designed with Knuth's Metafont system, one of the few typefaces developed in this way. The Computer Modern source files are governed by 62 distinct parameters, controlling the widths and heights of various elements, the presence of serifs or old-style numerals, whether dots such as the dot on the "i" are square or rounded, and the degree of "superness" in the bowls of lowercase letters such as "g" and "o". This allows Metafont designs to be processed in unusual ways; Knuth has shown effects such as morphing in demonstrations, where one font slowly transitions into another over the course of a text. While it attracted attention for the concept, Metafont has been used by few other font designers; by 1996, Knuth said that "asking an artist to become enough of a mathematician to understand how to write a font with 60 parameters is too much" while digital-period font designer Jonathan Hoefler commented in 2015 that "Knuth's idea that letters start with skeletal forms is flawed".

Derived versions

Knuth produced his original Computer Modern fonts using Metafont, a program that reads stroke-based definitions of glyphs and outputs ready-to-use fonts as bitmap image files. He mostly left the font, as with other components of TeX (with the exception of the TeX and Metafont names themselves, a stipulation Knuth made to maintain quality control), in the public domain. The advance of publishing technology (PostScript, PDF, laser printers) has reduced the need for bitmap fonts. The preferred formats are now outline fonts such as Type 1, TrueType, or OpenType, which can be rendered efficiently at arbitrary resolution and using sophisticated anti-aliasing techniques by printer firmware or on-screen document viewers. Therefore, several other projects have ported the Computer Modern fonts into such formats. Some of these projects have also complemented Computer Modern with

additional characters (euro, accented characters, Cyrillic and Greek script coverage) different font encodings (to overcome problems with Knuth's original 8-bit character sets) additional font style variants Several such derivatives are now also widely used and included in TeX Live, a modern TeX distribution.

CMU A current extended release of the Computer Modern family in the general-purpose OpenType format is the CMU distribution (for Computer Modern Unicode):

CMU Serif, the main Computer Modern font family. This includes the four traditional styles of font (regular, italic, bold, bold italic), and: CMU Serif upright italic, an upright italic style similar to cursive upright handwriting CMU Serif bold non-extended, a bold weight duplexed to have the same width as the regular style CMU Serif roman and bold slanted, two oblique styles CMU Classical Serif, an italic design with slightly simpler serif designs Concrete Roman, a slab serif font in the four standard styles CMU Typewriter, a typewriter-style slab serif font CMU Sans Serif, a complementary sans-serif font, and CMU Bright, a lighter style of the same design CMU Sans demi-condensed, a condensed style of the same design CMU is released under the SIL Open Font License.

BlueSky

Computer Modern was first transformed to a PostScript Type 3 font format by BlueSky, Inc. in 1988, and then to Type 1 in 1992 to include font hinting. The Type 1 version has since then been donated to the American Mathematical Society (AMS), which distributes it freely under the Open Font License. It is found in most standard TeX distributions.

Latin Modern The Latin Modern implementation, maintained by Bogusław Jackowski and Janusz M. Nowacki of TeX User Group Poland (GUST), is now standard in the TeX community and was made through a Metafont/MetaPost derivative called METATYPE1. It was derived from the BlueSky Type 1 fonts, which were converted back into outline-based METATYPE1 programs, from which the extended Type 1 and OpenType Latin Modern fonts were then developed. ConTeXt uses Latin Modern as default font, instead of Computer Modern. The Type 1 to METATYPE1 to Type 1 round-trip conversion process involved in the production of the Latin Modern fonts tried to preserve the hinting information of the BlueSky fonts; however, it introduced rounding errors that affect the quality of the hinting at low pixel sizes. As a result, on-screen display of the Latin Modern fonts can result in a less even display of kerning and character heights than with the BlueSky fonts. The same process was later extended to some free PostScript font clones under the umbrella project TeX Gyre. The Latin Modern font has also gained an OpenType math table. Unlike Computer Modern Math, Latin Modern Math has no pairwise kerning information: OpenType math rendering does not make use of this type of kerning, making such information useless.

… excerpt ends here. Continue reading the full article.

Illustrations

Computer Modern illustration
Computer Modern illustration
Computer Modern: Computer Modern is based on late-1800s type. Its direct inspiration, Monotype Modern, is at top; similar typefaces of the era included Century, Excelsior and Clarendon.
Computer Modern is based on late-1800s type. Its direct inspiration, Monotype Modern, is at top; similar typefaces of the era included Century, Excelsior and Clarendon.
Computer Modern: A sample gallery of many of the fonts from the CMU (Computer Modern Unicode) font family
A sample gallery of many of the fonts from the CMU (Computer Modern Unicode) font family
Computer Modern: Computer Modern used to set a maths formula in TeX, the font's original purpose
Computer Modern used to set a maths formula in TeX, the font's original purpose

Worked examples

Example 1 — a first encounter with Computer Modern

Start with the simplest possible case. Write down what Computer Modern claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Computer Modern before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Computer Modern ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Computer Modern

In research
Computer Modern appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Computer Modern in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Computer Modern is common in secondary-school and first-year university syllabi. It links to neighbouring topics Didone serif typefaces, Free software Unicode typefaces, Mathematical OpenType typefaces, so understanding it makes those chapters shorter.
In everyday life
Look for Computer Modern outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Computer Modern” →

How to study Computer Modern in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Computer Modern means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Computer Modern out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Computer Modern in simple terms?

Computer Modern is the original family of typefaces used by the typesetting program TeX. It was created by Donald Knuth with his Metafont program, and was most recently updated in 1992.

Why does Computer Modern matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Computer Modern?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Computer Modern.

Tags

  • Didone serif typefaces
  • Free software Unicode typefaces
  • Mathematical OpenType typefaces
  • Mathematical typefaces
  • Open-source typefaces
  • TeX
  • Typefaces and fonts introduced in 1978
  • Typefaces designed by Donald Knuth
  • Typefaces with text figures
  • Unified serif and sans-serif typeface families

Keep exploring