def CheckFont(page, fontname):
for f in page.getFontList():<EOL><INDENT>if f[<NUM_LIT:4>] == fontname:<EOL><INDENT>return f<EOL><DEDENT>if f[<NUM_LIT:3>].lower() == fontname.lower():<EOL><INDENT>return f<EOL><DEDENT><DEDENT>return None<EOL>
Return an entry in the page's font list if reference name matches.