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.
Properties
Section titled “Properties”
readonlyoptionalbold?:boolean
Defined in: src/core/document-model/types.ts:53
readonlyoptionalcaps?: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.
colorHex?
Section titled “colorHex?”
readonlyoptionalcolorHex?:string
Defined in: src/core/document-model/types.ts:67
fontFamily?
Section titled “fontFamily?”
readonlyoptionalfontFamily?:FontFamilyMap
Defined in: src/core/document-model/types.ts:68
fontSizePt?
Section titled “fontSizePt?”
readonlyoptionalfontSizePt?:Pt
Defined in: src/core/document-model/types.ts:66
italic?
Section titled “italic?”
readonlyoptionalitalic?:boolean
Defined in: src/core/document-model/types.ts:54
readonlyoptionallang?: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.
letterSpacingPt?
Section titled “letterSpacingPt?”
readonlyoptionalletterSpacingPt?: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.
readonlyoptionalrtl?: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.
shadingColorHex?
Section titled “shadingColorHex?”
readonlyoptionalshadingColorHex?: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.
smallCaps?
Section titled “smallCaps?”
readonlyoptionalsmallCaps?: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.
strike?
Section titled “strike?”
readonlyoptionalstrike?:boolean
Defined in: src/core/document-model/types.ts:58
styleId?
Section titled “styleId?”
readonlyoptionalstyleId?:string
Defined in: src/core/document-model/types.ts:52
textOutline?
Section titled “textOutline?”
readonlyoptionaltextOutline?: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.
underline?
Section titled “underline?”
readonlyoptionalunderline?:UnderlineStyle
Defined in: src/core/document-model/types.ts:55
underlineColorHex?
Section titled “underlineColorHex?”
readonlyoptionalunderlineColorHex?: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.
verticalAlign?
Section titled “verticalAlign?”
readonlyoptionalverticalAlign?:VerticalAlign
Defined in: src/core/document-model/types.ts:69