measureText

fun measureText(s: String?, p: Paint? = null): Rect

Return

the bounding box of text