Get width of TTF text in pixels.
(self, text, font_path, font_size)
| 339 | return surf.get_width() |
| 340 | |
| 341 | def ttf_width(self, text, font_path, font_size): |
| 342 | """Get width of TTF text in pixels.""" |
| 343 | font = self._get_ttf_font(font_path, font_size) |
| 344 | return font.size(text)[0] |
| 345 | |
| 346 | def ttf_height(self, font_path, font_size): |
| 347 | """Get height of TTF font in pixels.""" |
nothing calls this directly
no test coverage detected