TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Where is the source code or executable for Knuth's metafont program? I cannot find it anywhere!

share|improve this question
up vote 10 down vote accepted

The binary should be part of your TeX distribution; its name is mf. The source is available at: CTAN

share|improve this answer

To be even more specific, it is here, in the file called "mf.web". It is 23k lines of pascal mixed with heavy documentation that is something like DOXYGEN from the 70's.

If you're running a debian-based distribution the source is also in the "texlive-bin" source package in the "/texk/web2c/mf.web" subdirectory.

share|improve this answer
Like TeX, MetaFont is written in WEB. I'm not sure the comaprison with Doxygen really gets the WEB approach across at all! – Joseph Wright Dec 5 '14 at 17:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.