Introduction
Type 1 is Adobe’s font format for PostScript, introduced in the mid-1980s and the standard for professional typesetting until OpenType replaced it. A Type 1 font describes each glyph with cubic Bézier curves and hints, written as a small PostScript program. Adobe published the specification in 1990. Adobe’s own applications stopped supporting Type 1 fonts in 2023.
On Windows a font came as a .pfb file with the outlines and a
.pfm file with the metrics. The .pfa extension is the same font
in all-ASCII form, and .afm is Adobe’s text format for metrics. On the classic
Mac OS the font program lived in the POST resources of an LWFN file (described on the
segments page).
The viewer reads PFB, PFA, bare Type 1 text and LWFN files: it draws every glyph from its charstring, optionally with the hints applied at a pixel size you choose, and a multiple master font at any design vector. It also reads synthetic and hybrid fonts, and checks the book’s rules for the Private dictionary and the charstrings, showing what breaks a rule as a problem or, when only the hint quality is affected, as a note.
Structure
A Type 1 font is a PostScript program in two parts. The clear text part starts with a
line such as %!PS-AdobeFont-1.0 and defines the font name, the encoding
and other font information (the font
dictionary). The private part, which holds the hints and the glyph outlines as
charstrings, is encrypted with the simple
eexec cipher; in a PFA file it is written in hexadecimal, and in a PFB file
as binary. A PFB file wraps the parts in segments,
each starting with the byte 80, a type (1 for ASCII, 2 for binary, 3 for
the end of the file) and a 4-byte little-endian length.
0Segment header80 01and the length6 bytes6Clear text part%!PS-AdobeFont-1.0, font name, encodingvaries…Segment header80 02and the length6 bytes…Encrypted part hints and charstrings,eexecencryptedvaries…Trailer a last ASCII segment of zeros, then80 03varies
Not described
Known, not yet covered
- Reference: CID-keyed fonts and Type 3 fonts are other PostScript font types, not the Type 1 Font Format, and are not described here. (The metric files that travel with a Type 1 font, the .pfm and .afm files, have pages of their own.)
- Reference: the text of Appendix 3 of the book (the PostScript of the
OtherSubrsprocedures) is Adobe’s and is not reproduced; the pages say what each procedure does and how a reader carries it out instead. - Viewer: what it does beyond the book’s own rules is the viewer’s own choice and is labelled so
(
ForceBoldmakes a one-pixel stem two pixels, counter control groups are allocated in the order given,ExpansionFactoris met by pulling the hinted box back towards the scaled one: the book and TN 5015 give no algorithm), and the particular choices of ATM, FreeType or Ghostscript are not copied, so a hinted pixel can differ from theirs (listed on the charstrings page). It draws no kerning when the font is opened alone, because the kerning lives in the AFM or PFM file: drop either with the font (the same base name) and their viewers draw a sample line with the font’s outlines and the metrics file’s kerning. The PostScript of anOtherSubrsentry the books do not define is not run (a PostScript interpreter’s job: see what a reader runs); the Dictionaries tab says which entries a font calls. - Viewer: for a synthetic font (chapter 9.1) it does not check that the Private dictionary is a
clone of the basic font’s (that needs the font’s PostScript to be run), and it does not run the
FontDirectorytest; for a hybrid font (9.2) it does not run the resolution test that chooses between the two sets (it shows both). The Adobe Type Manager parsing rules of chapter 10 (described on the segments page) are checked as notes for ordinary fonts, and not for synthetic and hybrid fonts, whose PostScript is arranged differently.
Unknown
- Reference: the
OtherSubrsentries 4 to 11 and 19 and up: the book reserves entries beyond 3 “for future extensions”, and the only ones documented publicly are 12 and 13 (counter control) and 14 to 18 (multiple master) in TN 5015. A font may call others; the viewer notes the call and passes the arguments back to thepopcommands, as the book says to do.
Links
Software
- FontForge – free font editor that opens and converts Type 1 fonts (Windows, macOS, Linux)
- Ghostscript – PostScript interpreter that uses Type 1 fonts (Windows, macOS, Linux)
Developers
Reference
- Adobe Type 1 Font Format – Adobe’s specification of the font program, encryption and charstrings (PDF)
- Adobe Font Metrics – the text file of a Type 1 font’s widths, ligatures and kerning (.afm)
- Windows Printer Font Metrics – the binary metrics file of a Type 1 font on Windows (.pfm)