Home › Resources & tools › Metafont Compiler

Metafont Compiler

Metafont is a programming language used to define fonts. It was created by Donald Knuth and is a companion to the TeX typesetting system.

A Metafont script describes the shape of a glyph (or multiple glyphs) as a collection of pen strokes. The cool thing about Metafont is that it is a programming language. You can use variables (parameters), loops, and conditionals to define the shape of a glyph. You can also describe the pen strokes declaratively in terms of their desired shape rather than explicitly list the commands to draw them. This allows you to create complex shapes that would be difficult to draw by hand.

To execute Metafont code, you usually need to install the Metafont interpreter on your computer (typically as part of the TeX distribution). To make it easier to experiment with Metafont, this online tool that allows you to run Metafont code online and see the generated output.

Input in the Metafont language.
Mode
The log will be displayed here when compilation starts.
Any generated files appear here.
Any generated glyph previews are displayed here.

See also

Big Physical Constants
$29.99

A collection of important physical quantities that marks their beauty and significance.

Big Mathematical Formulas
$29.99

A collection of large-format formulas showcasing the beauty of mathematics and mathematical typesetting.

Big Numerical Series
$29.99

Explore the deep mathematical relationships and typographic beauty within numerical series.

雨 (ame) Character Poster
$12.99

A poster featuring the 雨 (ame) kanji character.

Big Chemical Structures
$29.99

A collection of elaborate, large-format chemical structure depictions. Discover the fine details of chemical structures in their own right.

Awesome Metafont

A curated list of awesome resources on Metafont.

Computer Modern Playground

An interactive demo of the Computer Modern metafont.

COLRv1 to SVG

Convert COLRv1 fonts to SVG.

Typography Crossword

A daily crossword puzzle for typographical terms.

Fonts pronunciation guide

A pronunciation guide for the names of fonts.

All prices listed are in United States Dollars (USD). Visual representations of products are intended for illustrative purposes. Actual products may exhibit variations in color, texture, or other characteristics inherent to the manufacturing process.