TextState

data class TextState(val font: PdfFont? = null, val fontSize: Double = 12.0, val textMatrix: Matrix = Matrix.IDENTITY, val lineMatrix: Matrix = Matrix.IDENTITY, val charSpacing: Double = 0.0, val wordSpacing: Double = 0.0, val horizontalScaling: Double = 100.0, val leading: Double = 0.0, val rise: Double = 0.0, val renderingMode: Int = 0)

Per-BT/ET block text state — reset at BT, mutated by text operators.

Constructors

Link copied to clipboard
constructor(font: PdfFont? = null, fontSize: Double = 12.0, textMatrix: Matrix = Matrix.IDENTITY, lineMatrix: Matrix = Matrix.IDENTITY, charSpacing: Double = 0.0, wordSpacing: Double = 0.0, horizontalScaling: Double = 100.0, leading: Double = 0.0, rise: Double = 0.0, renderingMode: Int = 0)

Properties

Link copied to clipboard
val charSpacing: Double = 0.0

Tc: extra spacing added after each glyph, in unscaled text-space.

Link copied to clipboard
val font: PdfFont? = null
Link copied to clipboard
val fontSize: Double = 12.0
Link copied to clipboard

Th: horizontal scale, 100.0 = 100 %.

Link copied to clipboard
val leading: Double = 0.0

TL: distance between baselines, used by T*, ', ".

Link copied to clipboard

Tlm: starting matrix for the next line — separate from textMatrix.

Link copied to clipboard

Tr: 0 fill, 1 stroke, 2 fill+stroke, 3 invisible.

Link copied to clipboard
val rise: Double = 0.0

Ts: baseline offset, positive = raised.

Link copied to clipboard

Tm: maps text-space (glyph origin units) to user-space.

Link copied to clipboard
val wordSpacing: Double = 0.0

Tw: extra spacing added after each space (0x20) glyph.