Returns a list of strings that tkinter reports as the installed fonts :return: List of the installed font names :rtype: List[str]
(cls)
| 4256 | |
| 4257 | @classmethod |
| 4258 | def fonts_installed_list(cls): |
| 4259 | """ |
| 4260 | Returns a list of strings that tkinter reports as the installed fonts |
| 4261 | |
| 4262 | :return: List of the installed font names |
| 4263 | :rtype: List[str] |
| 4264 | """ |
| 4265 | # A window must exist before can perform this operation. Create the hidden master root if it doesn't exist |
| 4266 | _get_hidden_master_root() |
| 4267 | |
| 4268 | fonts = list(tkinter.font.families()) |
| 4269 | fonts.sort() |
| 4270 | |
| 4271 | return fonts |
| 4272 | |
| 4273 | @classmethod |
| 4274 | def char_width_in_pixels(cls, font, character='W'): |
no test coverage detected