Package com.datalogics.PDFL
Class TextState
java.lang.Object
com.datalogics.PDFL.TextState
The text state includes parameters that affect text. These parameters include character and word spacing, font, font size, and horizontal scale.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()doubleThe current character spacing (corresponding to the Tc operator), in unscaled text space units.doubleThe current font size (corresponding to the Tf operator).doubleThe current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width.The current text rendering mode (corresponding to the Tr operator).doubleThe current text rise (corresponding to the Ts operator), in unscaled text space units.doubleThe current word spacing (corresponding to the Tw operator), in unscaled text space units.voidsetCharacterSpacing(double Tc) The current character spacing (corresponding to the Tc operator), in unscaled text space units.voidsetFontSize(double Tf) The current font size (corresponding to the Tf operator).voidsetHScale(double Tz) The current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width.voidThe current text rendering mode (corresponding to the Tr operator).voidsetTextRise(double Ts) The current text rise (corresponding to the Ts operator), in unscaled text space units.voidsetWordSpacing(double Tw) The current word spacing (corresponding to the Tw operator), in unscaled text space units.
-
Constructor Details
-
TextState
public TextState()Create a default text state
-
-
Method Details
-
delete
public void delete() -
getRenderMode
The current text rendering mode (corresponding to the Tr operator). -
setRenderMode
The current text rendering mode (corresponding to the Tr operator).- Parameters:
Tr- the new/updated text rendering mode
-
getCharacterSpacing
public double getCharacterSpacing()The current character spacing (corresponding to the Tc operator), in unscaled text space units. -
setCharacterSpacing
public void setCharacterSpacing(double Tc) The current character spacing (corresponding to the Tc operator), in unscaled text space units.- Parameters:
Tc- the new/updated character spacing
-
getWordSpacing
public double getWordSpacing()The current word spacing (corresponding to the Tw operator), in unscaled text space units. -
setWordSpacing
public void setWordSpacing(double Tw) The current word spacing (corresponding to the Tw operator), in unscaled text space units.- Parameters:
Tw- the new/updated character spacing
-
getFontSize
public double getFontSize()The current font size (corresponding to the Tf operator). -
setFontSize
public void setFontSize(double Tf) The current font size (corresponding to the Tf operator).- Parameters:
Tf- the new/updated font size
-
getHScale
public double getHScale()The current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width. Default is 100. -
setHScale
public void setHScale(double Tz) The current horizontal scaling (corresponding to the Tz operator), as a percentage of the normal glyph width. Default is 100.- Parameters:
Tz- the new/updated horizontal scaling
-
getTextRise
public double getTextRise()The current text rise (corresponding to the Ts operator), in unscaled text space units. -
setTextRise
public void setTextRise(double Ts) The current text rise (corresponding to the Ts operator), in unscaled text space units.- Parameters:
Ts- the new/updated text rise
-