Closed xlar8or closed 2 months ago
The problem is not because of WPS.
Auto sizing font to fit the textbox is not easy. There is an experimental feature fit_text()
but it doesn't always work. To learn more read this: https://python-pptx.readthedocs.io/en/latest/dev/analysis/txt-autofit-text.html?highlight=auto%20fit
Closing as not actionable. @xlar8or there is unlikely to be further work on auto_size and it entails partially implementing a renderer with is out-of-scope on principle for this library.
Hello, I'm creating a textbox and I want it to be sized so it fits the whole text in the TextFrame. I'm doing the following code:
This is what I get:
If i go to the Textbox properties I have the following:
If I click again on the Resize shape to fit text then I get the correct behavior:
FYI: I don't have PowerPoint, I'm using WPS, could that contribute to the problem?