Draw horizontally centered TTF text.
(self, y, text, color, font_path, font_size)
| 424 | return _lib.pager_ttf_height(font_path.encode(), font_size) |
| 425 | |
| 426 | def draw_ttf_centered(self, y, text, color, font_path, font_size): |
| 427 | """Draw horizontally centered TTF text.""" |
| 428 | _lib.pager_draw_ttf_centered(y, text.encode(), color, font_path.encode(), font_size) |
| 429 | |
| 430 | def draw_ttf_right(self, y, text, color, font_path, font_size, padding=0): |
| 431 | """Draw right-aligned TTF text.""" |
no test coverage detected