MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / fonts_installed_list

Method fonts_installed_list

PySimpleGUI/PySimpleGUI.py:4258–4271  ·  view source on GitHub ↗

Returns a list of strings that tkinter reports as the installed fonts :return: List of the installed font names :rtype: List[str]

(cls)

Source from the content-addressed store, hash-verified

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'):

Callers 1

Calls 1

_get_hidden_master_rootFunction · 0.85

Tested by

no test coverage detected