textOnContour

fun Drawer.textOnContour(text: String, contour: RectifiedContour, offsetX: Double = 0.0)(source)

Draws a given text along the given contour

Parameters

text

The string to be rendered along the contour.

contour

The rectified contour along which the text will be rendered.

offsetX

Optional horizontal offset to shift the starting point of the text along the contour. Default value is 0.0.