how can I center the text object in the camera veiwport

SO I now want to try and centre the text in the camera veiwport without resorting to converting it to a mesh and centring its origin to the cursor. I thought I could do this by getting its over all width and moving the text object by half relative to an empty.

I found this for the games engine and I hope there is an equivalent in the renderer.

own = GameLogic.getCurrentController().owner
own[“Text”] = own[“Text”].center(own[“width”])

Any ideas?

Doh!,

I only needed to center justify the text.

Jeez…