@express-document-sdk / CharacterStyles
Interface: CharacterStyles
Text styles that can be applied to any range of characters, even a short span like a single word. (Contrast with ParagraphStyles, which must be applied to an entire paragraph atomically).
Extends
BaseCharacterStyles
Extended by
Properties
baselineShift
• baselineShift: TextScriptStyle
Sets a superscript or subscript style.
Inherited from
BaseCharacterStyles.baselineShift
color
• color: Color
Text color.
Inherited from
BaseCharacterStyles.color
font
• font: Font
fontSize
• fontSize: number
Size of the text in points.
Inherited from
BaseCharacterStyles.fontSize
letterSpacing
• letterSpacing: number
Uniformly adjusts the letter spacing, aka character spacing. Specified as a delta relative to the font's default spacing, in units of 1/1000 em: positive values increase the spacing, negative values tighten the spacing, and 0 leaves spacing at its default.
Inherited from
BaseCharacterStyles.letterSpacing
link?
• optional
link: string
A URL hyperlink. Character ranges with a link are underlined by default, unless these styles explicitly specify
underline: false
.
To remove a link from existing text, explicitly specify link: ""
in TextContentModel.applyCharacterStyles.
Inherited from
BaseCharacterStyles.link
underline
• underline: boolean
Adds an underline to text.
Inherited from
BaseCharacterStyles.underline