def list_fonts():
    fonts = self._load(self._resource_path('fonts'))
    if ((fonts is None) or ('fonts' not in fonts)):
        log.warn('Cannot list fonts, no fonts found')
    else:
        log.color_print('Fonts:', log.Color.BOLD)
        for font in fonts['fonts']:
            log.color_print(f'    {font}', log.Color.PURPLE)
def list_fonts():
    fonts = self._load(self._resource_path('fonts'))
    if ((fonts is None) or ('fonts' not in fonts)):
        log.warn('Cannot list fonts, no fonts found')
    else:
        log.color_print('Fonts:', log.Color.BOLD)
        for font in fonts['fonts']:
            log.color_print(f'    {font}', log.Color.PURPLE)