Previous Next


                                                457
              SECTION 5.7                                                       Font Descriptors



KEY                TYPE     VALUE

ItalicAngle        number   (Required) The angle, expressed in degrees counterclockwise from the verti-
                            cal, of the dominant vertical strokes of the font. (For example, the 9-o’clock
                            position is 90 degrees, and the 3-o’clock position is –90 degrees.) The value is
                            negative for fonts that slope to the right, as almost all italic fonts do.

Ascent             number   (Required, except for Type 3 fonts) The maximum height above the baseline
                            reached by glyphs in this font, excluding the height of glyphs for accented
                            characters.

Descent            number   (Required, except for Type 3 fonts) The maximum depth below the baseline
                            reached by glyphs in this font. The value is a negative number.

Leading            number   (Optional) The spacing between baselines of consecutive lines of text. Default
                            value: 0.

CapHeight          number   (Required for fonts that have Latin characters, except for Type 3 fonts) The ver-
                            tical coordinate of the top of flat capital letters, measured from the baseline.

XHeight            number   (Optional) The font’s x height: the vertical coordinate of the top of flat non-
                            ascending lowercase letters (like the letter x), measured from the baseline, in
                            fonts that have Latin characters. Default value: 0.

StemV              number   (Required, except for Type 3 fonts) The thickness, measured horizontally, of
                            the dominant vertical stems of glyphs in the font.

StemH              number   (Optional) The thickness, measured vertically, of the dominant horizontal
                            stems of glyphs in the font. Default value: 0.

AvgWidth           number   (Optional) The average width of glyphs in the font. Default value: 0.

MaxWidth           number   (Optional) The maximum width of glyphs in the font. Default value: 0.

MissingWidth       number   (Optional) The width to use for character codes whose widths are not speci-
                            fied in a font dictionary’s Widths array. This has a predictable effect only if all
                            such codes map to glyphs whose actual widths are the same as the value of
                            the MissingWidth entry. Default value: 0.

FontFile           stream   (Optional) A stream containing a Type 1 font program (see Section 5.8,
                            “Embedded Font Programs”).

FontFile2          stream   (Optional; PDF 1.1) A stream containing a TrueType font program (see Sec-
                            tion 5.8, “Embedded Font Programs”).

Previous Next