SECTION 5.1
391
Organization and Use of Fonts
(T
m
)
in the text object, several text state parameters, and the current transforma-
tion matrix (CTM) in the graphics state; see Section 5.3.3, “Text Space Details.” If
the text space is later scaled to make the unit size 1 centimeter, painting glyphs from
the same 12-unit font generates results that are 12 centimeters high.
5.1.2 Achieving Special Graphical Effects
Normal uses of
Tj
and other glyph-painting operators cause black-filled glyphs to
be painted. Other effects can be obtained by combining font operators with gen-
eral graphics operators.
The color used for painting glyphs is the current color in the graphics state: either
the nonstroking color or the stroking color (or both), depending on the text ren-
dering mode (see Section 5.2.5, “Text Rendering Mode”). The default color is
black, but other colors can be obtained by executing an appropriate color-setting
operator or operators (see Section 4.5.7, “Color Operators”) before painting the
glyphs. Example 5.3 uses text rendering mode 0 and the
g
operator to fill glyphs
in 50 percent gray, as shown in Figure 5.1.
Example 5.3
BT
/F13 48 Tf
20 40 Td
0 Tr
0.5 g
( ABC ) Tj
ET
ABC
FIGURE 5.1
Glyphs painted in 50% gray