Skip to content

Commit 6adaca9

Browse files
src/__init__.py:JM_get_font(): cope with mupdf master fz_lookup_noto_font()'s new args.
1 parent 59525c7 commit 6adaca9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/__init__.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19981,7 +19981,10 @@ def fertig(font):
1998119981

1998219982
# Check for NOTO font
1998319983
#have_noto:;
19984-
data, size, index = mupdf.fz_lookup_noto_font( script, lang)
19984+
if mupdf_version_tuple >= (1, 29):
19985+
data, size, index, attr, noto_index = mupdf.fz_lookup_noto_font(script, lang)
19986+
else:
19987+
data, size, index = mupdf.fz_lookup_noto_font(script, lang)
1998519988
font = None
1998619989
if data:
1998719990
font = mupdf.fz_new_font_from_memory( None, data, size, index, 0)

0 commit comments

Comments
 (0)