sempdf v1.9.1Interfaces
Interface: InlineTextRun
sempdf / InlineTextRun
Defined in: src/types.ts:1024
A single styled segment of inline rich text. Runs passed together to PdfPage.richText or PdfFlow.richParagraph flow on the same line and wrap together as one paragraph; each run carries its own style.
Any style omitted on a run inherits from the block-level options
(RichTextOptions). Whitespace between words is taken from the run
text verbatim — include trailing/leading spaces where you want them
between adjacent runs (e.g. "Hello " then a bold "world").
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
bold? | boolean | Selects the bold variant of this run's font. See TextOptions.bold. | src/types.ts:1032 |
characterSpacing? | number | Additional spacing between characters in PDF points. | src/types.ts:1046 |
color? | ColorInput | Color for this run. | src/types.ts:1042 |
font? | PdfFont | Font for this run (built-in name, embedded handle, or registered family name). | src/types.ts:1030 |
fontSize? | number | Font size in PDF points for this run. | src/types.ts:1040 |
highlight? | ColorInput | Background highlight color drawn behind this run. See TextOptions.highlight. | src/types.ts:1064 |
horizontalScaling? | number | Horizontal glyph scaling percentage for this run. See TextOptions.horizontalScaling. | src/types.ts:1062 |
italic? | boolean | Selects the italic variant of this run's font. See TextOptions.italic. | src/types.ts:1034 |
kerning? | boolean | Whether kerning is applied for this run. | src/types.ts:1044 |
link? | string | When set, wraps this run in a clickable URI link annotation. | src/types.ts:1048 |
renderMode? | TextRenderMode | Glyph painting mode for this run. See TextOptions.renderMode. | src/types.ts:1056 |
rise? | number | Raises (+) or lowers (−) this run's baseline in PDF points. See TextOptions.rise. | src/types.ts:1050 |
strike? | boolean | Draws a strike-through line over this run. | src/types.ts:1038 |
strokeColor? | ColorInput | Stroke color for stroking render modes. See TextOptions.strokeColor. | src/types.ts:1058 |
strokeWidth? | number | Stroke width for stroking render modes. See TextOptions.strokeWidth. | src/types.ts:1060 |
subscript? | boolean | Renders this run as subscript. See TextOptions.subscript. | src/types.ts:1054 |
superscript? | boolean | Renders this run as superscript. See TextOptions.superscript. | src/types.ts:1052 |
tag? | "Span" | "Quote" | "Reference" | "BibEntry" | "Code" | "Artifact" | Optional inline semantic structure tag for this run within its rich-text block. | src/types.ts:1028 |
text | string | Text content of this segment. | src/types.ts:1026 |
underline? | boolean | Draws an underline beneath this run. | src/types.ts:1036 |