(font)
| 15658 | return tkinter.font.Font(font=font).measure('A') # single character width |
| 15659 | |
| 15660 | def _char_height_in_pixels(font): |
| 15661 | return tkinter.font.Font(font=font).metrics('linespace') |
| 15662 | |
| 15663 | def _string_width_in_pixels(font, string): |
| 15664 | return tkinter.font.Font(font=font).measure(string) # single character width |