TextState Class Documentation

class TextState

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

delete

synchronized void delete(Boolean disposing)

Parameters

disposing: Boolean

Returns:

synchronized void

delete

synchronized void delete()

Returns:

synchronized void

finalize

void finalize()

Returns:

void

getCharacterSpacing

double getCharacterSpacing()

Returns:

double

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

getFontSize

double getFontSize()

Returns:

double

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

getHScale

double getHScale()

Returns:

double

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

getRenderMode

TextRenderMode getRenderMode()

Returns:

TextRenderMode

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

getTextRise

double getTextRise()

Returns:

double

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

getWordSpacing

double getWordSpacing()

Returns:

double

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

setCharacterSpacing

void setCharacterSpacing(double Tc)

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

void setFontSize(double Tf)

Parameters

Tf: double

the new/updated font size

Returns:

void

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

setHScale

void setHScale(double Tz)

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

void setRenderMode(TextRenderMode Tr)

Parameters

Tr: TextRenderMode

the new/updated text rendering mode

Returns:

void

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

setTextRise

void setTextRise(double Ts)

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

void setWordSpacing(double Tw)

Parameters

Tw: double

the new/updated character spacing

Returns:

void

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