I have a text element which I want to find the width of after setting

text.setTrait("#text", "hello world!");

if I examine the text.getBBox().getWidth() it returns 0. I need this to position the next text element.

I dont think many people do this as doing text.setFloatTrait("x", 50.0f) crashes your emulator AND your phone!!! (at least the emulator "works"!!)
(see this thread)

Any help appreciated!

Ed.