I'm loading text on to a png file of width xWidth and height xHeight.

Can anyone think of a way to work out the x/y position so that the text is aligned?