Skip to content

Commit

Permalink
fitz/helper-python.i: fix #1909.
Browse files Browse the repository at this point in the history
CheckFont(): removed lower-case comparison.
  • Loading branch information
JorjMcKie authored and julian-smith-artifex-com committed Oct 19, 2022
1 parent 0c3ca2b commit e4ea5fd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fitz/helper-python.i
Original file line number Diff line number Diff line change
Expand Up @@ -1108,8 +1108,6 @@ def CheckFont(page: "struct Page *", fontname: str) -> tuple:
for f in page.get_fonts():
if f[4] == fontname:
return f
if f[3].lower() == fontname.lower():
return f


def CheckFontInfo(doc: "struct Document *", xref: int) -> list:
Expand Down

0 comments on commit e4ea5fd

Please sign in to comment.