WriteTextToCanvasOptions

external interface WriteTextToCanvasOptions(source)

Properties

Link copied to clipboard
abstract external val backgroundColor: Color?

The background color of the canvas. Default value - Color.TRANSPARENT

Link copied to clipboard
abstract external val fill: Boolean?

Whether to fill the text. Default value - true

Link copied to clipboard
abstract external val fillColor: Color?

The fill color. Default value - Color.WHITE

Link copied to clipboard
abstract external val font: String?

The CSS font to use. Default value - '10px sans-serif'

Link copied to clipboard
abstract external val padding: Double?

The pixel size of the padding to add around the text. Default value - 0

Link copied to clipboard
abstract external val stroke: Boolean?

Whether to stroke the text. Default value - false

Link copied to clipboard
abstract external val strokeColor: Color?

The stroke color. Default value - Color.BLACK

Link copied to clipboard
abstract external val strokeWidth: Double?

The stroke width. Default value - 1