Hacker News new | ask | show | jobs
by svat 29 days ago
Actually:

• He had already published the first editions of Volume 1, 2, 3, and the second edition of Volume 1, by 1973. It was in 1977 when the publishers sent him galley proofs for the second edition of Volume 2, having switched to phototypesetting (away from hot-metal typesetting a la Linotype, though IIRC it was actually Monotype) that he was disappointed with the results. And he had some back-and-forth with them and they did improve their fonts (https://tex.stackexchange.com/a/367133/48), but he was still dissatisfied.

> I didn't know what to do. I had spent 15 years writing those books, but if they were going to look awful I didn't want to write any more.

• At this time he came to know of the existence of digital typesetters. Typesetting with computers had existed before, but it had always seemed a crude toy, rather than something suitable for “real books”. But he saw Patrick Winston's Artificial Intelligence that had been just published (I think he got an early proof copy to review or something), and he realized for the first time that digital typesetting was an option (apparently Winston's book was printed at >1000dpi, and Knuth later got his hands on a machine that claimed a resolution of 5333 dpi: see this wonderful comment from Knuth's student and “right-hand man”, David Fuchs: https://news.ycombinator.com/item?id=20009875)

• In fact it was the fonts that he was dissatisfied with rather than the typesetting, so METAFONT was in some sense the primary/motivating project and TeX was only written in order to be able to use METAFONT.

• Actually his first idea was to simply take the old fonts, get high-resolution scans of them (not easy to obtain at that time) and use them directly. He approached Xerox Research Center but:

> I asked if I could use Xerox's lab facilities to create my fonts. The answer was yes, but there was a catch: Xerox insisted on all rights to the use of any fonts that I developed with their equipment. Of course that was their privilege, but such a deal was unacceptable to me: A mathematical formula should never be "owned" by anybody! Mathematics belongs to God.

• So he went home and (after trying a bit with TV cameras) tried projecting photographs of the pages onto the wall and tracing the outlines, and it was while staring at these images that he realized that the shapes of letters were not arbitrary but there was some logic to them (e.g. in the font he was using, the spacing between the vertical strokes in 'm' was equal, and equal to that in 'n'), and he decided (as a computer programmer) to capture this design in code — something that had never before been done. The hardest letter to capture this way is S, hence the paper in the OP.

> Finally, a simple thought struck me. Those letters were designed by people. If I could understand what those people had in their minds when they were drawing the letters, then I could program a computer to carry out the same ideas. Instead of merely copying the form of the letters my new goal was therefore to copy the intelligence underlying that form. I decided to learn what type designers knew, and to teach that knowledge to a computer.

• This is also why METAFONT never really caught on among typographers: as Charles Bigelow (quoted by Richard Southall, https://luc.devroye.org/Southall-METAFONT1986.pdf) observed, “the designer thinks with images, not about images”. Knuth did not want crude “geometric” constructions of letters (as some prior 16th century typographers had attempted: https://www.ams.org/journals/bull/1979-01-02/S0273-0979-1979... and as some typographers only passingly familiar with METAFONT think!). He wanted actual real typographically beautiful shapes, but to be able to generate those shapes with code. This is obviously much harder than simply drawing the shapes using visual intuition, even if it enables variation. (See “The Concept of a Meta-Font”: https://gwern.net/doc/design/typography/1982-knuth.pdf — again, many people in the typography world confuse the abstract concept of a meta-font introduced in this paper with (their incorrect impressions of) the METAFONT program, and omit crediting Knuth for variable fonts).

• The second edition of Volume 2 was not printed with Linotype. Yes the machines still existed in Europe and he talked to typesetters (he mentions in particular a person from Belfast), but it was in fact published using TeX (the first version, TeX77 and MF78). He was still unhappy with the results, though, and spent a few more years learning more about typography and working with people like Bigelow and Hermann Zapf, before the rewrite into the current TeX82 and MF84 (and current version of Computer Modern). I think it's only with the third edition (1997) that he's finally satisfied.

1 comments

Thanks for this great comment!

The motivation behind METAFONT is amusing to me because it seems to have some of the same hubris of the most extreme AI proponents nowadays: we can replace art by technology. I'm fascinated with TeX (and have spent a lot of my life rewriting it http://github.com/jamespfennell/texcraft) but I always found the situation with fonts in the TeX ecosystem a bit odd. There are people in our society whose vocation is font design (e.g. https://en.wikipedia.org/wiki/Robert_Slimbach). But the TeX ecosystem landed in a place where we use fonts created by computer scientists rather than font designers.

Hi (looks like I've already starred your repo at some point months/years ago)!

The motivation was not to replace art with technology, but to preserve/resurrect an art that was going away, by truly capturing the human understanding[^1]. When the rest of the industry was perfectly content with the deterioration of typesetting, Knuth set out to capture the aesthetics of the best journals of the past. A quote from the Mathematical Typography paper I linked above (https://websites.umich.edu/~millerpd//docs/501_Winter13/Knut...):

> At this point I regretfully stopped submitting papers to the American Mathematical Society, since the finished product was just too painful for me to look at. Similar fluctuations of typographical quality have appeared recently in all technical fields, especially in physics where the situation has gotten even worse.

Frankly, I think the "replace art by technology" impression is a very shallow one, that I alluded to earlier. When Knuth wrote his “The Concept of a Meta-Font” in a journal (Visible Language) mostly read by designers/typographers, many of them wrote letters in response (https://shreevatsa.net/tex/metafont/concept#reactions). What you can see is that the best of them were supportive (even bringing up new points like how it could be useful in educating the next generation of font designers), but some were sharply critical, more or less resenting this intrusion of technology into their art medium. But now a few decades later, basically all fonts are distributed and stored digitally anyway, except that (without METAFONT) the shapes of letters are now basically just stored as binary blobs / sequences of numbers, without any METAFONT-like understanding of typographically relevant quantities like (say) x-height, comma depth, slab thickness, etc. Which one is truer to the art?

(Not a rhetorical question BTW: as in the Bigelow/Southall quote above, one could say that Knuth's approach is to achieve typographical/artistic excellence through understanding, but the artistic approach is visual and intuitive without a cognitive component. But this is a different complaint from the "replace art by technology" take.)

(BTW apart from the default Computer Modern fonts designed by Knuth, who based them on earlier Monotype fonts, almost all fonts used by people with TeX too are designed by font designers, not computer scientists.)

[1]: Related quote from Knuth (sorry paraphrasing from memory): “People say that the best way to understand something is to teach it. I say no: the best way to understand something is to teach it to a computer.” But then again he has also said: "Science is what we understand well enough to explain to a computer. Art is everything else we do."

The idea wasn't to replace type designers, but to create a new tool for artists to use.
I had a slightly different reaction, though I'm only going by what I read in this thread. It wasn't to replace art with technology for everyone, but to scratch a personal itch. He liked the artist-made typography just fine, but it was going away regardless and that was demotivating to him. I think this is in the finest tradition of hacks, even if it took decades.
The first METAFONT was Computer Modern, which (short version) was a re-creation of Monotype 8A.