Skip to content
Discussion options

You must be logged in to vote

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")

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hbh112233abc
Comment options

Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1888 on August 22, 2022 08:55.