Fixed the DrawText.write method

Was writing an extra quote
This commit is contained in:
Salvador E. Tropea 2020-09-01 20:31:41 -03:00
parent 76ea47c04f
commit 0b3c36d11a
1 changed files with 2 additions and 2 deletions

View File

@ -389,9 +389,9 @@ class DrawText(object):
return txt
def write(self, f):
f.write('T {} {} {} {}'.format(self.orientation, self.pos_x, self.pos_y, self.radius))
f.write('T {} {} {} {}'.format(self.orientation, self.pos_x, self.pos_y, self.size))
f.write(' {} {} {} "{}"'.format(self.type, self.sub_part, self.convert, self.text))
f.write(' {} {} {} {}\n" '.format(['Normal', 'Italic'][self.italic], int(self.bold), self.hjustify, self.vjustify))
f.write(' {} {} {} {}\n'.format(['Normal', 'Italic'][self.italic], int(self.bold), self.hjustify, self.vjustify))
def get_rect(self):
return 0, 0, 0, 0, False