Returns font paths from font name or path

def _getFont(self, font):
        """
        Returns font paths from font name or path
        """
        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