code: def _getFont(self, font):
          
          if os.path.isfile(font):
              font_files = [font]
          else:
              font_files = fc.query(family=font)
              if not font_files:
                  raise ValueError('No such font')
          return font_files
docs: Returns font paths from font name or path