Rotated texts #3011
-
Is it possible to create a text with any rotation angle? insert_text only accepts values 90, 180,270. We need to rotate texts 45 degrees. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Method insert_textbox supports the |
Beta Was this translation helpful? Give feedback.
-
Other interesting effects are selective stretching / shrinking of the text. For example, using the matrix |
Beta Was this translation helpful? Give feedback.
Method insert_textbox supports the
morph=(point, matrix)
parameter.If you do
page.insert_textbox(rect, text, morph=(rect.bl, fitz.Matrix(45)), ...)
, the text will be rotated by 45° around the bottom-left point of the rectangle.