TextLayer

A node representing a text layer.

TextLayer interface

A node representing a text layer.

Signature:

interface TextLayer extends LayerMixin

Extends: LayerMixin

Properties

Property

Modifiers

Type

Description

alignment

TextAlignment

Text alignment.

fill

readonly

SolidPaint | undefined

The solid fill paint applied to the text.

fontFamily

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.

fontSize

number

The font size.

fontStyle

string

The font style within the family, e.g. "Regular", "Bold", "Light Italic".

stroke

readonly

TextStroke | undefined

The stroke applied to the text, if one exists.

text

string

The text content of this layer.

type

readonly

'TEXT_LAYER'

Layer type

Methods

Method

Description

createFill(opts)

Creates or updates the single fill on this text layer.

createStroke(opts)

Creates or updates the single stroke on this text layer.

Last updated: October 8, 2026 at 10:45 AMEdit this page