Skip to Main Content
Fonts & Encodings
book

Fonts & Encodings

by Yannis Haralambous
September 2007
Intermediate to advanced content levelIntermediate to advanced
1040 pages
31h 23m
English
O'Reilly Media, Inc.
Content preview from Fonts & Encodings

F.3. MetaFog

Over the past 20 years, there have been several attempts to produce PostScript or TrueType fonts from METAFONT code, the first of them doubtless being that of Shimon Yanai and Daniel Berry [355], who developed a program called mf2ps that converted METAFONT surfaces into PostScript Type 1 contours. The code for this software (which is in fact a change-file for METAFONT—i.e., a file for adding Pascal code to METAFONT and modifying that code) can be found on the CTAN servers (http://www.ctan.org), but it is difficult to compile today, as it depends on a library of subroutines peculiar to Sun that dates from the years 1990 to 1991.

Richard Kinch, in his TrueTEX system [210], offered a program (for Windows only) called MetaFog [209] that converts METAFONT code into TrueType contours.

The process is quite complex:

  1. We begin by compiling the METAFONT sources with METAPOST(!). The latter produces a file for each glyph in the font. We assemble the glyphs into a ZIP archive.

  2. We launch MetaFog on those glyphs through the use of an AWK script. MetaFog produces two types of glyph-description files: reduced ones (those that have valid contours) and nonreduced ones (in which the contours of the different METAFONT pen strokes have not been merged). It is the filename that differs: for example, _065.eps is a reduced file, and _065u.eps is a nonreduced file.

  3. We open the nonreduced files in the program weed (Figure F-4). This program is a type of glyph editor in which we can do only one ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Unicode Demystified

Unicode Demystified

Richard Gillam
Unicode Explained

Unicode Explained

Jukka K. Korpela
Blender 3D By Example - Second Edition

Blender 3D By Example - Second Edition

Oscar Baechler, Xury Greer

Publisher Resources

ISBN: 9780596102425Catalog PageErrata