Exemplo n.º 1
0
    def textsize(self, string, font, maxwidth=None, **kwargs):
        if maxwidth is None:
            maxwidth = 65535

        box = (0, 0, maxwidth, 65535)
        textbox = textfolder.get(self, box, string, font, **kwargs)
        return textbox.outlinebox.size
    def textsize(self, string, font, maxwidth=None, **kwargs):
        if maxwidth is None:
            maxwidth = 65535

        box = Box(0, 0, maxwidth, 65535)
        textbox = textfolder.get(self, box, string, font=None, **kwargs)
        return textbox.outlinebox.size
Exemplo n.º 3
0
 def textarea(self, box, string, font, **kwargs):
     lines = textfolder.get(self, box, string, font, **kwargs)
     for string, xy in lines.lines:
         self.text(xy, string, font, **kwargs)