Does Page.add_freetext_annot() work with custom fonts? #3759
Unanswered
ipoyt
asked this question in
Looking for help
Replies: 1 comment 1 reply
-
This is not working yet unfortunately. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I would love to add some text into a rectangle, but text should be automatically wrapped to a new line at box width. Lines not fitting into the box will be invisible. It's implemented via
Page.add_freetext_annot()
.The problem is that while using
Shape.insert_textbox()
I can use a font reference as fontname, after adding custom font files, however this is not working the same way inPage.add_freetext_annot()
.This is how I add custom fonts:
This is how it used to work properly with
Shape.insert_textbox()
:This is what I'm trying to do with
Page.add_freetext_annot()
:But unfortunately it doesn't use the file, using default fonts instead.
Is there any way to have text automatically wrapped to a new line at box width and lines not fitting into the box invisible, along with custom fonts?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions