It would be nice to have a way to calculate text bounds prior to rendering such that other elements can be resized accordingly.