Small size after apply fitz.TOOLS.set_small_glyph_heights(True) #3514
-
Description of the bugI was have a issue "After applying redactions with Page.add_redact_annot() some text disappears" but I applied set_small_glyph_heights and it works well, but the fontsize became small even I determined it by 20 and it's not effected How to reproduce the bug``
`` PyMuPDF version1.24.4 Operating systemWindows Python version3.12 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The fontsize will be automatically adjusted to smaller values until the full text string fits into the redaction (!) rectangle. |
Beta Was this translation helpful? Give feedback.
-
@JorjMcKie |
Beta Was this translation helpful? Give feedback.
-
Have converted this to a Discussions post. The automatic text replacement implemented inside redactions is a convenience - inevitably coming with some restrictions as to how much this can be influenced. If your needs go beyond, you must adapt your approach and do text replacement in multiple steps:
|
Beta Was this translation helpful? Give feedback.
Have converted this to a Discussions post.
The automatic text replacement implemented inside redactions is a convenience - inevitably coming with some restrictions as to how much this can be influenced.
If your needs go beyond, you must adapt your approach and do text replacement in multiple steps:
insert_text
,insert_textbox
,fill_textbox
,insert_htmlbox
…