TextState Class Documentation
classTextStateNamespace:com::datalogics::PDFL
Detailed Description
The text state includes parameters that affect text. These parameters include character and word spacing, font, font size, and horizontal scale.
Constructor & Destructor Documentation
TextState
TextState()Create a default text state
Member Function Documentation
DisposeChildren
voidDisposeChildren()Returns:
void[static initializer]
static void[static initializer]()delete
synchronized voiddelete(Booleandisposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized voiddelete()Returns:
synchronized voidfinalize
voidfinalize()Returns:
voidgetCharacterSpacing
doublegetCharacterSpacing()Returns:
doubleThe current character spacing (corresponding to the Tc operator), in unscaled text space units.
getFontSize
doublegetFontSize()Returns:
doubleThe current font size (corresponding to the Tf operator).
getHScale
doublegetHScale()Returns:
doubleThe current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width. Default is 100.
getRenderMode
TextRenderModegetRenderMode()Returns:
TextRenderModeThe current text rendering mode (corresponding to the Tr operator).
getTextRise
doublegetTextRise()Returns:
doubleThe current text rise (corresponding to the Ts operator), in unscaled text space units.
getWordSpacing
doublegetWordSpacing()Returns:
doubleThe current word spacing (corresponding to the Tw operator), in unscaled text space units.
setCharacterSpacing
voidsetCharacterSpacing(doubleTc)Parameters
Tc: doublethe new/updated character spacing
Returns:
voidThe current character spacing (corresponding to the Tc operator), in unscaled text space units.
setFontSize
voidsetFontSize(doubleTf)Parameters
Tf: doublethe new/updated font size
Returns:
voidThe current font size (corresponding to the Tf operator).
setHScale
voidsetHScale(doubleTz)Parameters
Tz: doublethe new/updated horizontal scaling
Returns:
voidThe current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width. Default is 100.
setRenderMode
voidsetRenderMode(TextRenderModeTr)Parameters
Tr: TextRenderModethe new/updated text rendering mode
Returns:
voidThe current text rendering mode (corresponding to the Tr operator).
setTextRise
voidsetTextRise(doubleTs)Parameters
Ts: doublethe new/updated text rise
Returns:
voidThe current text rise (corresponding to the Ts operator), in unscaled text space units.
setWordSpacing
voidsetWordSpacing(doubleTw)Parameters
Tw: doublethe new/updated character spacing
Returns:
voidThe current word spacing (corresponding to the Tw operator), in unscaled text space units.