def draw_text(self, x, y, txt): dx, dx_space, dy_up, dy_down = self.dc_info.get_extents(txt) self.dc.text(x * self.scale, y * self.scale - dy_down - 2, txt) BaseDc.draw_text(self, x, y, txt)
def draw_text(self, x, y, txt): (w, h, d, e) = self.dc.GetFullTextExtent(txt) dy_up = h - d self.dc.DrawText(txt, x * self.scale, y * self.scale - dy_up) BaseDc.draw_text(self, x, y, txt)