{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

TextPainter


Summary

Public functions

Unit
paint(canvas: Canvas, textLayoutResult: TextLayoutResult)

Paints the text onto the given canvas.

Cmn

Public functions

paint

fun paint(canvas: Canvas, textLayoutResult: TextLayoutResult): Unit

Paints the text onto the given canvas.

Parameters
canvas: Canvas

a canvas to be drawn

textLayoutResult: TextLayoutResult

a result of text layout