getTextWidth

open fun getTextWidth(text: String): Float

Returns the visual width of the text based on its current text appearance.