Text object: Size not scaling correctly
See original GitHub issueDescription of bug / unexpected behavior
The size
parameter for a Text object does not work as intended.
Expected behavior
I would expect the output to match for:
- initializing a text size X
- scaling to X.
Additional: I would be okay with using scale instead of size as a workaround, but as seen below it performs an automated word-wrap because the width of the text pre-scaling seems to be too large. If possible, it would be great if this could be activated/deactivated with a parameter.
How to reproduce the issue
long_string = "Problems: First, 'size' changes the spacing between two strings, which it should not. " \
"Second, when exceeding a specific width (pre-scale), the line is wrapped, which is ok but " \
"should be configurable."
self.add(
VGroup(
Text(long_string, size=0.25),
Text(long_string).scale(0.25)
).arrange(DOWN, aligned_edge=LEFT)
)
Additional media files

System specifications
This issue should be present on all systems. Manim Version: 0.5.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Text displays too large in paper space in AutoCAD
Issue: Text objects in an AutoCAD drawing are blown up or scaled much larger than expected when displayed in a layout, in a...
Read more >Text not scaling - General Discussion - Vectorworks Forum
A viewport shows you the objects from the selected design layers at any scale you want and has nothing to do with the...
Read more >Textmeshpro not scaling ? - Unity Forum
The RectTransform of the text object would scale but not the text. Enabling Text Auto-sizing will result in the point size of the...
Read more >Scaling/transforming doesn't work on group containing text.
Playing around with designs often you want to downscale objects to 50% or 30% of the original size. Do do this, I can...
Read more >Indesign scale text size with text box - Text Frame Options
I had the same issue, where cmd+shift would scale the size but not the text. I fixed it by going to the preferences>general>object...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In that case, the only things I can fix is adding an option to disable word wraps, and report the issue about the spacing to upstream.
https://github.com/ManimCommunity/ManimPango/pull/54 is merged, will do the release part and add it to manim tomorrow.