I'd thought that
- textAlign(CENTER,CENTER);
You can use textwidth and textheight (does it exist??) and say
- text("a", width/2 - textwidth ("a") / 2 , height/2 - textheight ("a") / 2 );
(not tested)
textwidth and textheight (does it exist??) should know the current size of your "a"