TextStroke

A solid stroke applied to a TextLayer.

TextStroke interface

A solid stroke applied to a TextLayer. Unlike strokes on shapes, text strokes only support solid color fills (no gradients).

Signature:

interface TextStroke

Properties

Property

Modifiers

Type

Description

fill

readonly

SolidPaint

The solid paint used for the stroke.

width

readonly

Animatable<number>

The stroke width.

Methods

Method

Description

remove()

Removes this stroke from its text layer.

Last updated: August 5, 2026 at 11:47 AMEdit this page