A Type 1 font program builds a PostScript dictionary and registers it as a font. The clear text part (the first segment) fills in the keys anyone may read; the encrypted part adds the Private dictionary, which holds the hints and helper routines, and the CharStrings dictionary of glyph programs. Because the program is real PostScript, a reader that does not run PostScript has to recognise these keys and their usual syntax.
First line
A conforming font starts with %!FontType1-SpecVersion:
FontName FontVersion, for example
%!FontType1-1.0: Symbol 001.003; fonts from Adobe itself use
%!PS-AdobeFont-1.0: FontName version, and
software should accept both (Type 1 specification, section 2.3). DSC comments such
as %%CreationDate and %%VMusage, the memory the font needs
once loaded, may follow.
Font dictionary
| Key | Type | Meaning |
|---|---|---|
FontType | integer | 1. |
FontName | name | The PostScript name, e.g. /Times-Roman. |
FontInfo | dictionary | Optional descriptive values, below. |
PaintType | integer | 0 the outlines are filled; 2 they are stroked. |
StrokeWidth | number | Line width for PaintType 2, in glyph units. |
FontMatrix | array of 6 | Maps glyph units to the 1-unit text space; normally [0.001 0 0 0.001 0 0], a 1000-unit em. |
Encoding | array or name | StandardEncoding, or a 256-entry array of glyph names indexed by character code (unused codes /.notdef). |
FontBBox | array of 4 | Lower-left x, y and upper-right x, y of all glyphs, in glyph units. |
UniqueID | integer | Optional number registered with Adobe so that printers can cache glyphs across jobs; 0 to 16,777,215 (224 − 1), separate for each FontType (section 2.5). |
XUID | array | Optional extended unique ID: an organisation number followed by its own numbers (defined in the PostScript Language Reference Manual, not the Type 1 book). |
Private | dictionary | Added by the encrypted part; below. |
CharStrings | dictionary | Added by the encrypted part: glyph name → charstring. Must contain /.notdef. |
Metrics, Metrics2, CDevProc | dictionaries, procedure | Optional overrides of glyph widths and side bearings, added by applications rather than font makers (Metrics appears in the Type 1 book’s figure 2b; the others are PostScript Level 2 additions). |
FSType | integer | A later addition in some fonts: the embedding permissions, as in the OS/2 table’s fsType. |
FontInfo
| Key | Type | Meaning |
|---|---|---|
version | string | Font version, e.g. (001.007). |
Notice | string | Trademark and copyright notice. |
FullName | string | Full name for menus, e.g. (Times Roman). |
FamilyName | string | Family, e.g. (Times). |
Weight | string | Weight name, e.g. (Roman), (Bold). |
ItalicAngle | number | Degrees anticlockwise from vertical; negative for fonts that lean right. |
isFixedPitch | boolean | True if every glyph has the same width. |
UnderlinePosition | number | Distance from the baseline to the underline, in glyph units (usually negative). |
UnderlineThickness | number | Underline thickness, in glyph units. |
Fonts may add other entries (Adobe’s 1990 fonts include a Copyright
string).
Private dictionary
The encrypted part starts by creating the Private dictionary. Its hint values let the rasteriser keep stems even and line up the tops and bottoms of letters at small sizes. All values are in glyph units unless stated.
| Key | Type | Meaning |
|---|---|---|
RD or -| | procedure | Required (Appendix 1). Reads the binary charstring that follows: {string currentfile exch readstring pop}. |
ND or |- | procedure | Required (Appendix 1). Defines a glyph: {noaccess def}. |
NP or | | procedure | Required (Appendix 1). Stores a subroutine: {noaccess put}. |
BlueValues | array, up to 14 | Required (an empty array if no zones are needed). Pairs of y values giving alignment zones. Inside a pair the first number is less than or equal to the second; the first pair is the baseline overshoot position and the baseline (a bottom zone) and must be the baseline pair; every later pair is a top zone (x-height, ascender, cap height, figure height, each with its overshoot position). Section 5.3 does not require the pairs to be in ascending order: its own example is [-15 0 700 715 547 559]. Different pairs must be at least 3 units apart (see below). |
OtherBlues | array, up to 10 | Pairs of zones below the baseline (descenders). |
FamilyBlues | array, up to 14 | The family’s regular-weight BlueValues, used at small sizes so the family aligns. |
FamilyOtherBlues | array, up to 10 | The family’s OtherBlues. |
BlueScale | number | How many pixels tall one character space unit is when overshoot suppression is turned off: for fewer pixels than that, every feature in an alignment zone is rendered at the same pixel height; for the same or more, overshoots are allowed. BlueScale = (pointsize − 0.49) ÷ 240, where the point size is the one at which suppression should end on a 300 dpi device; default 0.039625, which is 10 points at 300 dpi (section 5.6). There is a mandatory restriction: (pointsize − 0.49) × (maximum alignment zone height) must be less than 240, that is BlueScale × the tallest zone must be under 1. |
BlueShift | integer | Overshoots at least this many units deep are kept above the BlueScale size; shallower ones are kept only if they come to half a pixel; default 7. It must be larger than the highest flex in the font (section 8.3), so set it explicitly when a flex is more than 6 units high. |
BlueFuzz | integer | How far outside a zone an edge may be and still be aligned to it; default 1. Because it widens every zone, zones must be declared at least 2 × BlueFuzz + 1 units apart (section 5.8). The book advises new fonts to set it to 0. |
StdHW | array of 1 | The dominant horizontal stem width. |
StdVW | array of 1 | The dominant vertical stem width. |
StemSnapH | array, up to 12 | Common horizontal stem widths, including StdHW, in ascending order. |
StemSnapV | array, up to 12 | Common vertical stem widths. |
ForceBold | boolean | Must be true or false. With true, where stems would normally be rendered one pixel thick an interpreter may thicken them (bold characters then stay thicker than normal ones at small sizes); with false it will not (section 5.10). The viewer makes such a stem two pixels thick when it applies the hints. |
LanguageGroup | integer | 0 (the default) Latin, Greek, Cyrillic and similar; 1 Chinese, Japanese and Korean ideographs, which use different stem rules. A font in group 1 should have /LanguageGroup 1 def and must also have /RndStemUp false def (section 5.11). |
ExpansionFactor | real, positive | A limit for changing the size of a character’s bounding box during the processing that adjusts the sizes of counters in fonts of LanguageGroup 1 (section 5.14; Technical Note #5015, 2.5). The default 0.06 allows a change of ±6% in the box, in x and y (the y direction may be constrained further by BlueValues); at small sizes the system may have to accept irregular counters rather than exceed it. Use 0 when strict adherence to the metrics is essential, or a larger value such as 0.5 for bar code fonts and logos that need counter control. |
lenIV | integer | Number of random bytes at the start of each charstring; default 4. The original LaserWriter’s interpreter (version 23.0) needs 4; otherwise 0 or 1 saves space (section 5.12). |
password | integer | Compatibility entry, required: always 5839 (section 5.13). |
MinFeature | array of 2 | Obsolete compatibility entry, required: always {16 16} (section 5.13). |
UniqueID | integer | The same value as in the font dictionary. Optional, but strongly recommended (Appendix 1). |
RndStemUp | boolean | Superseded by LanguageGroup. A language group 1 font must also include /RndStemUp false def for older interpreters; no other font should mention it (section 5.11). |
Subrs | array | Charstring subroutines, called with callsubr; see below. Optional, but required if OtherSubrs are used (Appendix 1). |
OtherSubrs | array of procedures | PostScript procedures called from charstrings with callothersubr, for flex and hint replacement. Required if flex or hint replacement is used (Appendix 1). |
Hint values that real fonts do not follow
Two rules of the hint entries are broken by working fonts, and the viewer reports them as notes, not as problems:
StdHWthat is not one of theStemSnapHwidths (Computer Moderncmmib8is one). Section 5.9 saysStemSnapHholds “the most common widths (including the dominant width given in the StdHW array)”, a description with no “must”; the one hard rule there is that the widths are sorted in increasing order. For an italic fontStemSnapVis meant to be empty, so aStdVWoutside it is expected.- Alignment zones closer than 2 ×
BlueFuzz+ 1 units (cmsltt10andcmvtt10are closer than 3 with the defaultBlueFuzzof 1). Sections 5.3 and 5.4 say pairs “must be at least 3 units apart” from each other and from pairs inOtherBlues(“This minimum distance can be modified by the optionalBlueFuzzentry”); the note to section 5.8 gives the limit as “(2 × BlueFuzz + 1) units” (“alignment zones must be declared at least (2 × BlueFuzz + 1) units apart”) and then says that for the defaultBlueFuzzof 1 they “should be at least 3 units apart”. So the minimum gap is 3 with the default, 1 withBlueFuzz 0and 5 withBlueFuzz 2, and the viewer checks it whateverBlueFuzzis. That is a rule about how well the hints work, not about whether the font is readable and drawable: these are real fonts that read and draw completely, and each of the three has its charstrings and structure intact, so the viewer does not call them damaged. The book’s wording is “must”, so the note quotes it; when two zones are closer, a stem edge between them can only be put on one.
What the viewer checks in the Private dictionary
Reported as problems (the book says “must” or “required”, and a font without it cannot work as a Type 1 font):
- no
BlueValues; zone arrays that are not pairs, are too long, or have a pair whose first number is above its second; - no
MinFeatureorpassword(5.13: “must be included”), and a value other than{16 16}or 5839; - no
RD,NDorNP, or their-|,|-and|names (Appendix 1: required); LanguageGroup1 withoutRndStemUp(5.11: “must also include”);- flex or hint replacement in the charstrings but no
OtherSubrs(Appendix 1); - a negative
ExpansionFactor.
Reported as notes (the text states the rule, but it concerns how well the hints work or how a simple parser reads the file, and real fonts break it, so the viewer quotes the text and does not call the font damaged):
- zones closer than 2 ×
BlueFuzz+ 1 units (above); BlueScale× the tallest alignment zone not under 1 (5.6: “mandatory restriction”);BlueShiftnot larger than the highest flex (8.3);RndStemUpin a font that is not in language group 1 (5.11), and counter control in a font that is not (TN 5015, 2.1);OtherSubrswithoutSubrs(Appendix 1);- an hstem with its bottom in a bottom zone and its top in a top zone (6.5);
SubrsandCharStringscounts that do not follow the Adobe Type Manager rules, and the other rules of chapter 10.
The charstring rules (numbers over 32,000, pop, hstem3, seac, flex, dotsection) are on the charstrings page.
Subrs, OtherSubrs and CharStrings syntax
/Subrs count array
dup 0 n RD n encrypted bytes NP
dup 1 n RD n bytes NP
…
ND
2 index /CharStrings count dict dup begin
/.notdef n RD n bytes ND
/space n RD n bytes ND
…
end
end
readonly put
noaccess put
dup /FontName get exch definefont pop
mark currentfile closefile
Each entry is a count of bytes, the RD procedure, one space and then
exactly that many bytes of encrypted charstring.
If a font uses flex or hint replacement, its first four Subrs must be these
fixed helpers (section 8.4); otherwise Subrs 0 may be an ordinary subroutine:
| Subrs | Contents | Use |
|---|---|---|
| 0 | 3 0 callothersubr pop pop setcurrentpoint return | Ends a flex sequence. |
| 1 | 0 1 callothersubr return | Starts a flex sequence. |
| 2 | 0 2 callothersubr return | Adds a point to a flex sequence. |
| 3 | return | Does nothing; called during hint replacement by interpreters without OtherSubrs 3 (see hint replacement). |
| OtherSubrs | Purpose |
|---|---|
| 0 | End of flex: draw the two curves as a flat line or as curves depending on the size. |
| 1 | Start of flex. |
| 2 | Collects one flex point. |
| 3 | Hint replacement. |
| 4 and up | Reserved by the Type 1 specification for future extensions (chapter 8). Technical Note #5015 uses entries 12 and 13 for counter control and 14 to 18 for Multiple Master fonts: see OtherSubrs and multiple master. |
The OtherSubrs procedures themselves are a fixed block of PostScript published by Adobe, which fonts copy unchanged; interpreters such as FreeType implement their effect directly rather than running them.
The two built-in encodings
The Encoding entry may name StandardEncoding or
ISOLatin1Encoding, which are PostScript names, not part of the font. The Type 1 book refers to the
Adobe StandardEncoding vector in the PostScript Language Reference Manual, which also defines
ISOLatin1Encoding. The glyph names below were checked code by code against the two encoding vectors in
Ghostscript’s Resource/Init/gs_std_e.ps and gs_il1_e.ps (Artifex Software,
read as single raw files on 2026-11-19; the page’s own text is not copied from them). Every code
matched. Those files note that the printed ISOLatin1Encoding table in the first edition of the PostScript
manual omitted macron (149), dieresis (152), cedilla (155) and space (160), an error corrected in
Adobe Technical Note #5085; the table here has them. Every other code is /.notdef.
seac uses StandardEncoding to find its base and accent glyphs.
StandardEncoding (149 codes)
32 space exclam quotedbl numbersign dollar percent ampersand quoteright parenleft parenright asterisk plus comma hyphen period slash
48 zero one two three four five six seven eight nine, 58 colon semicolon less equal greater question at
65 A to Z, then bracketleft backslash bracketright asciicircum underscore quoteleft
97 a to z, then braceleft bar braceright asciitilde
161 exclamdown cent sterling fraction yen florin section currency quotesingle quotedblleft guillemotleft guilsinglleft guilsinglright fi fl
177 endash dagger daggerdbl periodcentered
182 paragraph bullet quotesinglbase quotedblbase quotedblright guillemotright ellipsis perthousand
191 questiondown
193 grave acute circumflex tilde macron breve dotaccent dieresis
202 ring cedilla
205 hungarumlaut ogonek caron emdash
225 AE, 227 ordfeminine, 232 Lslash Oslash OE ordmasculine, 241 ae, 245 dotlessi, 248 lslash oslash oe germandbls
ISOLatin1Encoding
Codes 32 to 126 are the same as in StandardEncoding (39 is quoteright and 96
quoteleft) except that 45 is minus, not hyphen. Then:
144 dotlessi grave acute circumflex tilde macron breve dotaccent dieresis (153 undefined) ring cedilla (156 undefined) hungarumlaut ogonek caron
160 space exclamdown cent sterling currency yen brokenbar section dieresis copyright ordfeminine guillemotleft logicalnot hyphen registered macron
176 degree plusminus twosuperior threesuperior acute mu paragraph periodcentered cedilla onesuperior ordmasculine guillemotright onequarter onehalf threequarters questiondown
192 Agrave Aacute Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis
208 Eth Ntilde Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave Uacute Ucircumflex Udieresis Yacute Thorn germandbls
224 agrave aacute acircumflex atilde adieresis aring ae ccedilla egrave eacute ecircumflex edieresis igrave iacute icircumflex idieresis
240 eth ntilde ograve oacute ocircumflex otilde odieresis divide oslash ugrave uacute ucircumflex udieresis yacute thorn ydieresis
Example
The clear text font dictionary of Times Roman (TIR_____.PFB, 1990),
with the long copyright strings shortened:
%!PS-AdobeFont-1.0: Times-Roman 001.007
%%CreationDate: Tue Mar 20 12:15:38 1990
%%VMusage: 30487 37379
11 dict begin
/FontInfo 10 dict dup begin
/version (001.007) readonly def
/Notice (Copyright (c) 1985, 1987, 1989, 1990 Adobe Systems Incorporated. …) readonly def
/Copyright ( … ) readonly def
/FullName (Times Roman) readonly def
/FamilyName (Times) readonly def
/Weight (Roman) readonly def
/ItalicAngle 0 def
/isFixedPitch false def
/UnderlinePosition -100 def
/UnderlineThickness 50 def
end readonly def
/FontName /Times-Roman def
/Encoding StandardEncoding def
/PaintType 0 def
/FontType 1 def
/FontMatrix [0.001 0 0 0.001 0 0] readonly def
/UniqueID 28416 def
/FontBBox{-168 -218 1000 898}readonly def
currentdict end
currentfile eexec
A 1000-unit em, filled outlines, the standard Latin encoding, and glyphs reaching
from 218 units below the baseline to 898 above. Everything after
eexec is in the encrypted segment.