Skip to content

RunProperties

Defined in: src/core/document-model/types.ts:51

ECMA-376 Part 1 §17.3.2 — Run Properties (rPr). All fields optional so the cascade can inherit them (undefined = “inherit from parent in the style chain”). Boolean toggle properties follow §17.17.4: an absent <w:b/> means “inherit”; a present <w:b/> with no val (or val=true/1/on) means true; val=false/0/off means explicit false.

readonly optional bold?: boolean

Defined in: src/core/document-model/types.ts:53


readonly optional colorHex?: string

Defined in: src/core/document-model/types.ts:58


readonly optional fontFamily?: FontFamilyMap

Defined in: src/core/document-model/types.ts:59


readonly optional fontSizePt?: Pt

Defined in: src/core/document-model/types.ts:57


readonly optional italic?: boolean

Defined in: src/core/document-model/types.ts:54


readonly optional lang?: string

Defined in: src/core/document-model/types.ts:70

ECMA-376 §17.3.2.20 — w:lang @w:val (e.g. "en-US", "ru-RU"). Used for the tagged-PDF per-element /Lang; does not affect visual layout.


readonly optional rtl?: boolean

Defined in: src/core/document-model/types.ts:65

ECMA-376 §17.3.2.30 — w:rtl. Marks the run as right-to-left, which seeds the BiDi algorithm with an R/AL bias even for neutral characters.


readonly optional strike?: boolean

Defined in: src/core/document-model/types.ts:56


readonly optional styleId?: string

Defined in: src/core/document-model/types.ts:52


readonly optional underline?: UnderlineStyle

Defined in: src/core/document-model/types.ts:55


readonly optional verticalAlign?: VerticalAlign

Defined in: src/core/document-model/types.ts:60