def draw_rotated_text(self, x, y, txt, angle): (w, h, d, e) = self.dc_info.get_extents(txt) BaseDc.draw_rotated_text(self, x, y, txt)
def draw_rotated_text(self, x, y, txt, angle): (w, h, d, e) = self.dc.GetFullTextExtent(txt) dy_up = h - d self.dc.DrawRotatedText(txt, x * self.scale + dy_up, y * self.scale, 360 - angle) BaseDc.draw_rotated_text(self, x, y, txt)