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.
Properties
Link copied to clipboard
Tc: extra spacing added after each glyph, in unscaled text-space.
Link copied to clipboard
Th: horizontal scale, 100.0 = 100 %.
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
Tm: maps text-space (glyph origin units) to user-space.
Link copied to clipboard
Tw: extra spacing added after each space (0x20) glyph.