Draw text using TTF font. Returns width or -1 on error.
(self, x, y, text, color, font_path, font_size)
| 412 | |
| 413 | # TTF text |
| 414 | def draw_ttf(self, x, y, text, color, font_path, font_size): |
| 415 | """Draw text using TTF font. Returns width or -1 on error.""" |
| 416 | return _lib.pager_draw_ttf(x, y, text.encode(), color, font_path.encode(), font_size) |
| 417 | |
| 418 | def ttf_width(self, text, font_path, font_size): |
| 419 | """Get width of TTF text in pixels.""" |
no test coverage detected