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 caps?: boolean

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

§17.3.2.5 w:caps — the run is DISPLAYED in capitals, whatever it stores.


readonly optional colorHex?: string

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


readonly optional fontFamily?: FontFamilyMap

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


readonly optional fontSizePt?: Pt

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


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:79

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 letterSpacingPt?: Pt

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

§17.3.2.35 w:rPr/w:spacing — extra space between the run’s characters (negative tightens). Word states it in twentieths of a point.


readonly optional rtl?: boolean

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

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 shadingColorHex?: string

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

§17.3.2.32 w:rPr/w:shd — the background painted behind the run’s own glyphs, already blended from the pattern, its colour and the fill.


readonly optional smallCaps?: boolean

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

§17.3.2.33 w:smallCaps — displayed in capitals, with the letters that were lower case set smaller.


readonly optional strike?: boolean

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


readonly optional styleId?: string

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


readonly optional textOutline?: TextOutline

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

§21.1.2.3.9 a:rPr/a:ln — a line drawn round the glyphs themselves, which DrawingML puts on a run and ISO 32000-1 §9.3.6 calls a text rendering mode that strokes as well as fills.


readonly optional underline?: UnderlineStyle

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


readonly optional underlineColorHex?: string

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

§17.3.2.40 w:u @w:color — the underline’s own colour, when it has one.


readonly optional verticalAlign?: VerticalAlign

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