Source set: Common
object TextPainter
Functions
paint
fun paint(canvas: Canvas, textLayoutResult: TextLayoutResult)
Paints the text onto the given canvas.
Parameters
| canvas | a canvas to be drawn |
| textLayoutResult | a result of text layout |
Compose Multiplatform
Ship iOS, desktop, and web apps with Compose
RevenueCat
Add subscriptions to your apps in minutes
object TextPainter
fun paint(canvas: Canvas, textLayoutResult: TextLayoutResult)
Paints the text onto the given canvas.
| canvas | a canvas to be drawn |
| textLayoutResult | a result of text layout |
Last updated: