Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fit shape to text? #970

Open
Rapid1898-code opened this issue Apr 25, 2024 · 1 comment
Open

Fit shape to text? #970

Rapid1898-code opened this issue Apr 25, 2024 · 1 comment

Comments

@Rapid1898-code
Copy link

Hello - is there any way to fit a shape to a text?

(so i have a simply text-field in a shape with a background color - and when the text is too long it gets cut - so i want to autosize the shape to the given text)

I tried it with

shape.text_frame.fit_text()

but this seems to only shrink the text itself - but i want to have the shape get fitted to the text.

@mszbot
Copy link

mszbot commented Sep 13, 2024

fit_text is experimental and this will not be fixed in python-pptx. See here: #982

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants