Introduction
PK, for packed, is a bitmap font format of the TeX system, designed and implemented by Tomas Rokicki in 1985 as a more compact form of the data in a GF file. It is meant for the DVI drivers that print TeX output.
Structure
A PK file starts with a preamble, the byte 247 and the identification byte 89,
followed by the characters as run-encoded bitmaps and a postamble. The documentation
of gftopk lists sample fonts whose PK files are less than half the size
of the GF files. pktype checks and lists a PK file, and
pktogf converts it back to GF.
Not described
This page is a first outline. The byte layout is not yet described here.
Known, not yet covered
- Reference: the commands, character preambles and run encoding of the file.
- Viewer: the site has no viewer for this format.
Links
Software
- pktype – checks and lists PK fonts
Reference
- The GFtoPK processor – the program source, with the GF and PK formats described
- DVI Driver Standard, Level 0, the PK file – TeX source of the appendix