getStringBounds

fun getStringBounds(text: String?): Rectangle2D?