Graphics Programs Reference
In-Depth Information
Figure 6-4. Kerned text
Text rendering modes
There are seven rendering modes for text, set with the Tr operator. Four of them are
for setting up text as a clipping path, and one is for writing invisible text. We don't
consider those here. The other three (modes 0, 1, and 2) are used for filling, stroking,
and filling-followed-by-stroking respectively. The colors set in the same way as for
shape drawing:
0.5 g
BT
/F0 72 Tf
1 0 0 1 160 380 Tm
90 TL
(Text Mode Zero) Tj T*
1 Tr
(Text Mode One) Tj T*
2 Tr
(Text Mode Two) Tj
ET
The result is illustrated in Figure 6-5 .
 
Search WWH ::




Custom Search