Introduction
GF, generic font, is the bitmap font format written by METAFONT, the font design
system that accompanies TeX. gftopk packs such a file into the more
compact PK format.
Structure
A GF file is a stream of byte-coded commands that draw each character. It starts
with a preamble, the byte 247 and the identification byte 131; a postamble beginning
with 248 locates the characters, and the file ends with at least four bytes of value
223. The gftype program, one of the METAFONT utilities, writes out the
contents in readable form.
Not described
This page is a first outline. The byte layout is not yet described here.
Known, not yet covered
- Reference: every command and the fields of the preamble and postamble.
- Viewer: the site has no viewer for this format.
Links
Software
- gftype – lists the contents of GF files
Reference
- The GFtype processor – the program source with the format described
- DVI Driver Standard, Level 0, the GF file – TeX source of the appendix