scientific article; zbMATH DE number 3986609

From MaRDI portal
Publication:3750096





METAFONT is a system and a programming language for encoding typefaces and for font design. A program written in METAFONT describes the typeface of the characters of a font. It is compiled into a digital description, a machine readable encoding of these characters, including font metric information and output device and resolution dependent pixel maps of the characters. This volume is a reference manual and a complete description of the language, and volume D of the series is a listing of the METAFONT compiler program. So, volume C and D are very similar to volumes A and B, which document and list the \(T_ EX\) system and program. In METAFONT, characters are described through pens of variable shape and paths along which the pens are run. A pen can also be used as an eraser, and it is possible to fill the interior of closed paths. The curves that define the shape of pens and paths are realized by METAFONT as Bézier splines that interpolate key points whose coordinates are specified by the user. The necessary control points which determine the shape of the spline between the key points can be computed by METAFONT from specifications for tension and curl of the curve between/at the key points or from the specified direction of the spline at a key point, or the control points can even be given explicitly by the user. The user has the same amount of freedom for constructing the characters as an artist has with pens and paper. But the features of METAFONT aid him. All the normal possibilities of programming languages are there, like variables, subroutines, one- or multi-dimensional arrays (whose size need not be declared; there are just as many elements allocated as are referenced). In addition, METAFONT will resolve dependencies between variables line coordinates by automatically solving (linear) algebraic equations. Thus a variable can be used before it is defined, and positions of key points can be given implicitly through their relations to other points. By clever use of METAFONT programming, a complete family of fonts can be programmed to depend on only a few parameters, such that each set of parameters results in a font with the same basic shape of all typefaces. An example of this method is Volume E of the series, Computer Modern Typefaces, where Knuth uses a set of 62 parameters to prescribe the varying appearances of the fonts forming the Computer Modern family. Knuth dedicated this book to Hermann Zapf, whose strokes are the best. Zapf and other font designers helped and stimulatd Knuth not only in the design of the Computer Modern typefaces, but also led him to improve and redesign the entire METAFONT system. A first system, now named METAFONT79, was built by Knuth up to 1979, but the typefaces constructed with it did not come up to high standards. The book explains not only the use of the system (with many examples), but also the underlying algorithms, for example for choosing the Bézier control points from the data supplied by the user. Unfortunately there is no Supplementary Bibliography section in this book (as in volumes B, D, and E of the series). Some bibliographical hints are spread though the text of the book, but the real bibliography for METAFONT is in volume D, not here. The original papers that show how the algorithms for METAFONT have developed are scarcely mentioned in this volume. The book is written along the same lines as volume A, the \(T_ EXbook\). It is a reference manual for METAFONT, and, at the same time, a step-by- step introduction into the principles and the usage of the system. This causes the same difficulties for the reader who wants to inform himself about a single topic. In that case it is distracting that descriptions of related things must be looked up at widely spread locations. But if one is looking through the book one always finds interesting new aspects of METAFONT.






Describes a project that uses

Uses Software






This page was built for publication:

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3750096)