Exemple #1
0
 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)
Exemple #2
0
 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)