Object

TextStrokeStyle

The object for defining the stroke to use for an outline on text.

Properties

color

The stroke color.

width
integer

Width of the stroke as a percentage relative to the font size.

Discussion

Use the TextStrokeStyle object to define a text outline.

This object can be used in TextStyle and ComponentTextStyle.

Example

{ "componentTextStyles": { "exampleStyle": { "stroke": { "color": "#000", "width": 3 }, "textColor": "#FFF", "fontSize": 30 } }}

See Also

Text Effects

object TextShadow

The object for creating a text shadow.

object TextShadowOffset

The object for setting an offset value to use with a text shadow.

object TextDecoration

The object for defining color and width for text underline or strikethrough.