API reference / Common / Engine types / TextRenderingMode
Type Alias: TextRenderingMode
ts
type TextRenderingMode = "fill" | "stroke" | "fillStroke" | "invisible";PDF text rendering mode for paint output.
Mirrors PDF operator Tr only for the paint contribution. PDF's add-to-clip modes (Tr 4–7) are represented separately in the model: the paint contribution lives in the [TextRegularRun] (with this enum set to whichever of Fill/Stroke/FillStroke applies, or no TextRegularRun at all for Tr 7), and the clip contribution shows up on subsequent objects' clips as Clip::Text.