TextState Class Documentation
class TextStateNamespace: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
delete
synchronized void delete(Boolean disposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized void delete()Returns:
synchronized voidfinalize
void finalize()Returns:
voidgetCharacterSpacing
double getCharacterSpacing()Returns:
doubleThe current character spacing (corresponding to the Tc operator), in unscaled text space units.
getFontSize
double getFontSize()Returns:
doubleThe current font size (corresponding to the Tf operator).
getHScale
double getHScale()Returns:
doubleThe current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width. Default is 100.
getRenderMode
TextRenderMode getRenderMode()Returns:
TextRenderModeThe current text rendering mode (corresponding to the Tr operator).
getTextRise
double getTextRise()Returns:
doubleThe current text rise (corresponding to the Ts operator), in unscaled text space units.
getWordSpacing
double getWordSpacing()Returns:
doubleThe current word spacing (corresponding to the Tw operator), in unscaled text space units.
setCharacterSpacing
void setCharacterSpacing(double Tc)Parameters
Tc: doublethe new/updated character spacing
Returns:
voidThe current character spacing (corresponding to the Tc operator), in unscaled text space units.
setFontSize
void setFontSize(double Tf)Parameters
Tf: doublethe new/updated font size
Returns:
voidThe current font size (corresponding to the Tf operator).
setHScale
void setHScale(double Tz)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
void setRenderMode(TextRenderMode Tr)Parameters
Tr: TextRenderModethe new/updated text rendering mode
Returns:
voidThe current text rendering mode (corresponding to the Tr operator).
setTextRise
void setTextRise(double Ts)Parameters
Ts: doublethe new/updated text rise
Returns:
voidThe current text rise (corresponding to the Ts operator), in unscaled text space units.
setWordSpacing
void setWordSpacing(double Tw)Parameters
Tw: doublethe new/updated character spacing
Returns:
voidThe current word spacing (corresponding to the Tw operator), in unscaled text space units.