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
Property
Type
Description
Inherited from
fontSizenumberSize of the text in points.
BaseCharacterStyles.fontSizeletterSpacingnumberUniformly 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.
BaseCharacterStyles.letterSpacingunderlinebooleanAdds an underline to text.
BaseCharacterStyles.underlinelink?stringA 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.BaseCharacterStyles.linkbaselineShiftSets a superscript or subscript style.
BaseCharacterStyles.baselineShift