CHAPTER 10
894
Document Interchange
TABLE 10.19 Font Selector Attributes
ATTRIBUTE
DESCRIPTION
FontFamily
A string specifying the preferred font family name. Derived from the
FontFamily
entry
in the font descriptor (see Table 5.19 on page 456).
A general font classification, used if
FontFamily
is not found. The following values are
supported; with two exceptions, they can be derived from the font descriptor’s
Flags
en-
try:
GenericFontFamily
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
Decorative
: Cannot be derived
Symbol
: Cannot be derived
FontSize
The size of the font: a positive fixed-point number specifying the height of the typeface
in points. It is derived from the
a
,
b
,
c
, and
d
fields of the current text matrix.
The stretch value of the font. It can be derived from
FontStretch
in the font descriptor
(see Table 5.19 on page 456).
The italicization value of the font. It is set to
Italic
if the Italic flag is set in the
Flags
field
of the font descriptor. Otherwise, it is set to
Normal
.
The small-caps value of the font. It is set to
SmallCaps
if the SmallCap flag is set in the
Flags
field of the font descriptor. Otherwise, it is set to
Normal
.
The weight (thickness) value of the font. It can be derived from
FontWeight
in the font
descriptor (see Table 5.19 on page 456).
The ForceBold flag and the
StemV
field should not be used to set this attribute.
FontStretch
FontStyle
FontVariant
FontWeight
Identifying Word Breaks
A document’s text stream defines not only the characters in a page’s text but also
the words. Unlike a character, the notion of a word is not precisely defined but
depends on the purpose for which the text is being processed. A reflow tool needs
to determine where it can break the running text into lines; a text-to-speech en-
gine needs to identify the words to be vocalized; spelling checkers and other ap-
Index Bookmark Pages Text
Previous Next
Pages: Index All Pages
This HTML file was created by VeryPDF PDF to HTML Converter product.