コード例 #1
0
 def textwidth(self, txt, width=None, **kwargs):
     if width is None: width = 0
     w = CanvasContext.textwidth(self, unicode(txt), width)
     # todo: handle kwargs?
     return w