TextState Class Documentation

classTextState

Namespace: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.

Referenced by

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 void

delete

synchronized voiddelete()

Returns:

synchronized void

finalize

voidfinalize()

Returns:

void

getCharacterSpacing

doublegetCharacterSpacing()

Returns:

double

The current character spacing (corresponding to the Tc operator), in unscaled text space units.

getFontSize

doublegetFontSize()

Returns:

double

The current font size (corresponding to the Tf operator).

getHScale

doublegetHScale()

Returns:

double

The current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width. Default is 100.

getRenderMode

TextRenderModegetRenderMode()

Returns:

TextRenderMode

The current text rendering mode (corresponding to the Tr operator).

getTextRise

doublegetTextRise()

Returns:

double

The current text rise (corresponding to the Ts operator), in unscaled text space units.

getWordSpacing

doublegetWordSpacing()

Returns:

double

The current word spacing (corresponding to the Tw operator), in unscaled text space units.

setCharacterSpacing

voidsetCharacterSpacing(doubleTc)

Parameters

Tc: double

the new/updated character spacing

Returns:

void

The current character spacing (corresponding to the Tc operator), in unscaled text space units.

setFontSize

voidsetFontSize(doubleTf)

Parameters

Tf: double

the new/updated font size

Returns:

void

The current font size (corresponding to the Tf operator).

setHScale

voidsetHScale(doubleTz)

Parameters

Tz: double

the new/updated horizontal scaling

Returns:

void

The current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width. Default is 100.

setRenderMode

voidsetRenderMode(TextRenderModeTr)

Parameters

Tr: TextRenderMode

the new/updated text rendering mode

Returns:

void

The current text rendering mode (corresponding to the Tr operator).

setTextRise

voidsetTextRise(doubleTs)

Parameters

Ts: double

the new/updated text rise

Returns:

void

The current text rise (corresponding to the Ts operator), in unscaled text space units.

setWordSpacing

voidsetWordSpacing(doubleTw)

Parameters

Tw: double

the new/updated character spacing

Returns:

void

The current word spacing (corresponding to the Tw operator), in unscaled text space units.