Hi,
Here is a routine I have used to center text horizontally on a given x, y location:
/center { % x y string
/string exch def
/y exch def
/x exch def
0 0 moveto
string dup stringwidth pop
2 div
x exch sub
y moveto
show
} def
I hope this helps you,
Johann