getTextBounds

fun getTextBounds(text: String, out: TextMetrics = TextMetrics(), fontSize: Double = this.fontSize, renderer: TextRenderer<String> = DefaultStringTextRenderer, align: TextAlignment = this.alignment): TextMetrics