Previous Next


                                          402
CHAPTER 5                                                                               Text




                          TABLE 5.3 Text rendering modes
MODE           EXAMPLE            DESCRIPTION

0                                 Fill text.

              R
1                                 Stroke text.



2                                 Fill, then stroke text.

              R
3                                 Neither fill nor stroke text (invisible).



4                                 Fill text and add to path for clipping (see above).

              R
5                                 Stroke text and add to path for clipping.



6                                 Fill, then stroke text and add to path for clipping.

              R
7                                 Add text to path for clipping.



At the end of the text object, the accumulated glyph outlines, if any, are combined
into a single path, treating the individual outlines as subpaths of that path and ap-
plying the nonzero winding number rule (see “Nonzero Winding Number Rule”
on page 232). The current clipping path in the graphics state is set to the intersec-
tion of this path with the previous clipping path. As is the case for path objects,
this clipping occurs after all filling and stroking operations for the text object
have occurred. It remains in effect until some previous clipping path is restored
by an invocation of the Q operator.

Note: If no glyphs are shown or if the only glyphs shown have no outlines (for exam-
ple, if they are space characters), no clipping occurs.

Previous Next