Get height of TTF font in pixels.
(self, font_path, font_size)
| 263 | return int(len(text) * font_size * 0.6) |
| 264 | |
| 265 | def ttf_height(self, font_path, font_size): |
| 266 | """Get height of TTF font in pixels.""" |
| 267 | return int(font_size * 1.2) |
| 268 | |
| 269 | def draw_ttf_centered(self, y, text, color, font_path, font_size): |
| 270 | """Draw horizontally centered TTF text.""" |
nothing calls this directly
no outgoing calls
no test coverage detected