(self)
| 119 | draw_text(line, line_start_position, size = self.text_size, color = self.color, font_id = self.font_id) |
| 120 | |
| 121 | def get_draw_dimensions(self): |
| 122 | lines = self.get_draw_lines() |
| 123 | width = 0 |
| 124 | for line in lines: |
| 125 | width = max(width, self.get_text_width(line)) |
| 126 | height = len(lines) * self.line_height |
| 127 | return width, height |
| 128 | |
| 129 | def get_draw_lines(self): |
| 130 | text_lines = self.get_wrapped_lines() |
no test coverage detected