drawText
abstract fun drawText(textLayout: TextLayout, x: Float = 0.0f, y: Float = 0.0f, paint: Paint? = null, @FloatRange(from = 0.0, to = 1.0) alpha: Float = 1.0f)
Draws a pre-measured Java2D textLayout with its top-left corner positioned at (x, y).
Parameters
textLayout
the pre-computed text layout to render.
x
horizontal offset of the top-left corner.
y
vertical offset of the top-left corner.
paint
the Paint to draw with, or null to keep the graphics context's current paint.
alpha
the opacity to render with.