page insert text bug #1889
-
Please provide all mandatory information! Describe the bug (mandatory)I find some chars insert the page can not show! To Reproduce (mandatory)
Expected behavior (optional)I try set other fontfile,and change Screenshots (optional)Your configuration (mandatory)windows 10 PyMuPDF 1.20.0: Python bindings for the MuPDF 1.20.1 library. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is not a bug, but a "question". So I transfer it to the Discussions tab for further handling. |
Beta Was this translation helpful? Give feedback.
-
You must of course always use a font containing the required symbols. This is a working example: doc=fitz.open()
page=doc.new_page()
text="text="Ⓐ ⑱ ➀ ➁ ➂ ➃ ➄ ➅ ➆ ➇ ➈ ➉"
point= (100, 100)
page.insert_font("F0",fontfile="noto-sans-symbols-regular.ttf")
page.insert_text(point, text, fontname="F0")
doc.save("x.pdf") |
Beta Was this translation helpful? Give feedback.
You must of course always use a font containing the required symbols. This is a working example: