TextLayer
A node representing a text layer.
TextLayer interface
A node representing a text layer.
Signature:
interface TextLayer extends LayerMixinExtends: LayerMixin
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
Text alignment. | |||
| SolidPaint | undefined | The solid fill paint applied to the text. | |
string | The font family name, e.g. "Roboto". Pairs with TextLayer.fontStyle to identify a font. Setting an unknown family causes the text to render with a fallback font. Use CreatorAPI.getAvailableFonts() to discover available font families. | ||
number | The font size. | ||
string | The font style within the family, e.g. "Regular", "Bold", "Light Italic". | ||
| TextStroke | undefined | The stroke applied to the text, if one exists. | |
string | The text content of this layer. | ||
| 'TEXT_LAYER' | Layer type |
Methods
Method | Description |
|---|---|
Creates or updates the single fill on this text layer. | |
Creates or updates the single stroke on this text layer. |