Draw text at position. Returns width.
(self, x, y, text, color, size=1)
| 231 | return 5 * size |
| 232 | |
| 233 | def draw_text(self, x, y, text, color, size=1): |
| 234 | """Draw text at position. Returns width.""" |
| 235 | if VERBOSE: |
| 236 | text_preview = text[:30] + ('...' if len(text) > 30 else '') |
| 237 | print(f"[MockPager] draw_text({x}, {y}, '{text_preview}', size={size})") |
| 238 | return len(text) * 6 * size |
| 239 | |
| 240 | def draw_text_centered(self, y, text, color, size=1): |
| 241 | """Draw horizontally centered text.""" |