Get height of TTF font in pixels.
(self, font_path, font_size)
| 420 | return _lib.pager_ttf_width(text.encode(), font_path.encode(), font_size) |
| 421 | |
| 422 | def ttf_height(self, font_path, font_size): |
| 423 | """Get height of TTF font in pixels.""" |
| 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.""" |