Is there a way to center position a piece of text in GD, like say I had it at a certain vertical position and I wanted it centered on that level, anyone know how to do that, it's the only thing holding me back from making my script work (I THINK!)

Thank you for any help given!