Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #2045 - immunize against non-UTF8 encoded fontnames
Python C function `Py_BuildValue("s", fontname)` will fail if fontname is not UTF8-encoded. Use PyUnicodeRawEscape function for fontnames instead - like everywhere else in PyMuPDF.
- Loading branch information