TextNode

constructor(text: String, contour: ShapeContour?, x: Double? = null, y: Double? = null, dx: Double = 0.0, dy: Double = 0.0, rotate: Double = 0.0)(source)

Parameters

x

the horizontal position of the start of the text, or null to continue after the previous text. For text along a contour it is the distance along the contour where the text starts.

y

the vertical position of the baseline of the text, or null to continue after the previous text

dx

a horizontal offset added to the position

dy

a vertical offset added to the position, for text along a contour an offset across the contour

rotate

the angle in degrees that every glyph is turned by around its origin, like the rotate attribute of SVG text. It is not applied to text along a contour.