How to rotate text?

A long time ago I could do that with g.drawTextAsPath(…) but this method doesn’t exist anymore.
Anybody knows how am I supposed to do this now?
Thanks much

Just use Graphics::addTransform before drawing it!