<div class='sourceset sourceset-common'>Common</div>

```kotlin
object TextPainter
```

## Functions

<h2 id="paint-canvas-textlayoutresult">paint</h2>

```kotlin
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 |