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