Skip to content

RunProperties

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

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


readonly optional caps?: boolean

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

§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:90


readonly optional fontFamily?: FontFamilyMap

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


readonly optional fontSizePt?: Pt

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


readonly optional italic?: boolean

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


readonly optional kerningMinPt?: Pt

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

§17.3.2.19 w:kern — the run’s glyph pairs are KERNED, at this size and above (0 turns kerning off). Word kerns nothing a run does not ask for.


readonly optional lang?: string

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

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

§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 ligatures?: Ligatures

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

[MS-DOCX] w14:ligatures — the face’s ligatures the run is set with. Word forms none at all in a document it opens in compatibility mode.


readonly optional rtl?: boolean

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

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

§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:88

§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:81


readonly optional styleId?: string

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


readonly optional textOutline?: TextOutline

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

§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:78


readonly optional underlineColorHex?: string

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

§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:92


readonly optional widthScale?: number

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

§17.3.2.43 w:w — each character set at this share of its own width (1 is as the face sets it), the glyph itself narrowed or widened.