Table 332 – Font selector attributes

Attribute

Description

FontFamily

A string specifying the preferred font family name. Derived from the FontFamilyentry in the font descriptor (see Ta b l e 122 ).

GenericFontFamily

A general font classification, used if FontFamily is not found. Derived from the font descriptor’s Flags entry as follows:

Serif Chosen if the Serif flag is set and the FixedPitch and Script flags are not set

SansSerif Chosen if the FixedPitch, Script and Serif flags are all not set

Cursive Chosen if the Script flag is set and the FixedPitch flag is not set

Monospace Chosen if the FixedPitch flag is set

NOTE The values Decorative and Symbol cannot be derived

FontSize

The size of the font: a positive number specifying the height of the typeface in points. Derived from the a, b, c, and d fields of the current text matrix.

FontStretch

The stretch value of the font. Derived from FontStretch in the font descriptor (see Ta b l e 122 ).

FontStyle

The italicization value of the font. It shall be Italic if the Italic flag is set in the Flags field of the font descriptor; otherwise, it shall be Normal.

FontVariant

The small-caps value of the font. It shall be SmallCaps if the SmallCap flag is set in the Flags field of the font descriptor; otherwise, it shall be Normal.

FontWeight

The weight (thickness) value of the font. Derived from FontWeight in the font descriptor (see Ta b l e 122 ).

The ForceBold flag and the StemV field should not be used to set this attribute.