You don't draw text to g
(last line), so whatever value you pass to KEY_TEXT_ANTIALIASING
won't have any effect.
You are drawing a rotated image with already antialiased text. Try setting KEY_INTERPOLATION
to VALUE_INTERPOLATION_BICUBIC
or VALUE_INTERPOLATION_BILINEAR
, which should effect scaling and rotation of images.
Another thing you could try, is to draw the text (rotated) directly onto g
, without the temporary image. Should also work, but you might have to adjust positioning relative to the rotation.