Open pranctco opened 1 week ago
Thanks for reporting this. We know how to fix the problem, but it requires a change to MuPDF itself, so it might not make it into the next PyMuPDF release.
I'll update this issue once MuPDF has been updated.
The latest MuPDF master branch has a fix for this.
However today's release of PyMuPDF-1.24.12 does not use latest MuPDF master, so does not fix this issue.
The next release will probably will have the fix, but this isn't guaranteed.
[Building current PyMuPDF with current MuPDF master fixes the problem.]
Description of the bug
font.valid_codepoints() has stopped working correctly on the latest version.
How to reproduce the bug
code + sample pdf
font_valid_codepoints.zip
latest version - malfunction
previous version - correct result
PyMuPDF version
1.24.11
Operating system
Windows
Python version
3.11