def validate_fonttype(s):
fonttypes = { '<STR_LIT>':    <NUM_LIT:3>,<EOL>'<STR_LIT>': <NUM_LIT> }<EOL>try:<EOL><INDENT>fonttype = validate_int(s)<EOL><DEDENT>except ValueError:<EOL><INDENT>if s.lower() in list(fonttypes.keys()):<EOL><INDENT>return fonttypes[s.lower()]<EOL><DEDENT>raise ValueError('<STR_LIT>' % list(fonttypes.keys()))<EOL><DEDENT>else:<EOL><INDENT>if fonttype not in list(fonttypes.values()):<EOL><INDENT>raise ValueError('<STR_LIT>' % list(fonttypes.values()))<EOL><DEDENT>return fonttype<EOL><DEDENT>
confirm that this is a Postscript of PDF font type that we know how to convert to