def draw(self,context):
context.set_source_rgb(256,256,256)
context.select_font_face("Courier", cairo.FONT_SLANT_NORMAL,
cairo.FONT_WEIGHT_BOLD)
context.set_font_size(FONTSIZE)
(x, y, width, height, dx, dy) = context.text_extents(self.c)
context.move_to(self.p.x*16 - width/2, self.p.y*16 - height/2)
context.scale(1,-1)
context.show_text(self.c)
context.scale(1,-1)
context.stroke()
评论列表
文章目录