TextStrokeStyle
The object for defining the stroke to use for an outline on text.
Declaration
object TextStrokeStyleProperties
| Name | Type | Description |
|---|---|---|
color | 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.
You can use this object in TextStyle and ComponentTextStyle.
Example
{
"componentTextStyles": {
"exampleStyle": {
…
"stroke": {
"color": "#000",
"width": 3
},
"textColor": "#FFF",
"fontSize": 30
}
}
}