Your code works for me, the "A" rotates around its origin. What's "wrong" is that the origin is not at the center of the letter, but this is expected because text has special alignment rules and the bounding box of a Text object is usually larger than what you see.