def _getFont(self, font):
if os.path.isfile(font):<EOL><INDENT>font_files = [font]<EOL><DEDENT>else:<EOL><INDENT>font_files = fc.query(family=font)<EOL>if not font_files:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT><DEDENT>return font_files<EOL>
Returns font paths from font name or path