Rotate text about centre of bounding box

Hello,

I want to rotated text about the centre of its bounding box, rather than the bottom left corner of the bounding box. I could not find any built-in method for this and I have run into problems implementing one myself. Before I spend any more time on this, has anyone already implemented such a method?

Thanks,
Roger

Simply define the text alignment as centred for both horizontal and vertical:

root.cern.ch/root/html534/TAttText.html#T1

Thanks Olivier!