How to get the Rect from text only, not Rect from "form text field" #1892
-
Hi admin, I would like to get the Rect of text only in the Text Field Widget. Is there any method to do that ? Here is my example code:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
There is no support within the widget API. |
Beta Was this translation helpful? Give feedback.
-
Transferring this to the Discussions tab. |
Beta Was this translation helpful? Give feedback.
-
This is the function with its defaults: |
Beta Was this translation helpful? Give feedback.
This is the function with its defaults:
fitz.get_text_length(text, fontname='helv', fontsize=11, encoding=TEXT_ENCODING_LATIN)
.