textBounds

abstract fun textBounds(font: Font, text: String, fontSize: Float): Vec2

calculate the bounds of this text, per the given parameters.

Return

a Vec2 containing the width and height of the given string. If your API does not support returning string heights, just return the font size. The discrepancy should be negligible.