@express-document-sdk / CharacterStylesInput
Interface: CharacterStylesInput
IMPORTANT: This is currently experimental only and should not be used in any add-ons you will be distributing until it has been declared stable. To use it, you will first need to set the experimentalApis
flag to true
in the requirements
section of the manifest.json
.
Variant of CharacterStyles with all style fields optional, used for applyCharacterStyles(). When using that API, any fields not specified are left unchanged, preserving the text's existing styles.
If specified, the font must be of the AvailableFont type – one that is guaranteed to be available for the current user to edit with.
Extends
Partial
<BaseCharacterStyles
>
Extended by
Properties
color?
• optional
color: Color
Text color.
Inherited from
Partial.color
font?
• optional
font: AvailableFont
fontSize?
• optional
fontSize: number
Size of the text in points.
Inherited from
Partial.fontSize
tracking?
• optional
tracking: 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
Partial.tracking
underline?
• optional
underline: boolean
Adds an underline to text.
Inherited from
Partial.underline