Closed exander77 closed 1 day ago
Information is insufficient for this post to be acceptable as a bug report. At a minimum a reproducing file is required. In your case we also need your code snippet, because your description is confusing.
For example, insert_font()
can never be used to replace another font (which, by the way is impossible by any other means, too).
Also, a font not having a name is completely legal. If you were providing the font then talk to someone from where you got it.
Closing this as the user has asked this also on StackOverflow, where we have answered that request.
Description of the bug
When I try to replace fonts by using
insert_font
, not only that font doesn't have name and instead(null)
is show when listing fonts, it does not replace my fonts:How to reproduce the bug
Try to insert font into pdf and save it.
PyMuPDF version
1.24.0
Operating system
Linux
Python version
3.8