Object

TextPainter

Source set: Common
public object TextPainter

Functions

paint

Source set: Common
public 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
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: