On wxDC

Does anyone have some suggestion?

  Andrea,

Did you try to draw a rotated rectangle around the text, using the same dimensions?
It might be a problem with GetTextExtent.

   Les