Height of a text wrapped label

I can create a label specifying the width and setting the wrap mode easily enough but as far as I can tell I have to specify the height myself and can’t find any methods to help calculate the wrapped height of some text.
Is there anything to do this? Thanks.

You can use the BitmapTextUtil class to do this:

// Element ref: the Element (like a label) that has a font / font size associated with it
// String text: The text to eventually be displayed
// float width: The fixed width of the element, causing the line wrap
// returns: The total height after line wrapping
BitmapTextUtil.getTextTotalHeight(Element ref, String text, float maxWidth);

This should do what you are looking for (I hope!)