CHAPTER 5
398
Text
TABLE 5.2 Text state operators
OPERANDS
OPERATOR
DESCRIPTION
charSpace
Tc
Set the character spacing,
T
c
, to
charSpace
, which is a number expressed in un-
scaled text space units. Character spacing is used by the
Tj
,
TJ
, and
'
operators.
Initial value: 0.
Set the word spacing,
T
w
, to
wordSpace
, which is a number expressed in unscaled
text space units. Word spacing is used by the
Tj
,
TJ
, and
'
operators. Initial
value: 0.
Set the horizontal scaling,
T
h
, to (
scale
÷
100).
scale
is a number specifying the
percentage of the normal width. Initial value: 100 (normal width).
Set the text leading,
T
l
, to
leading
, which is a number expressed in unscaled text
space units. Text leading is used only by the
T*
,
'
, and
"
operators. Initial value: 0.
Set the text font,
T
f
, to
font
and the text font size,
T
fs
, to
size
.
font
is the name of a
font resource in the
Font
subdictionary of the current resource dictionary;
size
is
a number representing a scale factor. There is no initial value for either
font
or
size
; they must be specified explicitly by using
Tf
before any text is shown.
Set the text rendering mode,
T
mode
, to
render
, which is an integer. Initial value: 0.
Set the text rise,
T
rise
, to
rise
, which is a number expressed in unscaled text space
units. Initial value: 0.
wordSpace
Tw
scale
Tz
leading
TL
font size
Tf
render
rise
Tr
Ts
Note that some of these parameters are expressed in
unscaled
text space units.
This means that they are specified in a coordinate system that is defined by the
text matrix,
T
m
but is not scaled by the font size parameter,
T
fs
.
5.2.1 Character Spacing
The character-spacing parameter,
T
c
, is a number specified in unscaled text space
units (although it is subject to scaling by the
T
h
parameter if the writing mode is
horizontal). When the glyph for each character in the string is rendered,
T
c
is
added
to the horizontal or vertical component of the glyph’s displacement,
depending on the writing mode. (See Section 5.1.3, “Glyph Positioning and
tem, horizontal coordinates increase from left to right and vertical coordinates
from bottom to top. Therefore, for horizontal writing, a positive value of
T
c
has