question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text object: Size not scaling correctly

See original GitHub issue

Description 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

Screenshot 2021-04-13 at 10 57 05

System specifications

This issue should be present on all systems. Manim Version: 0.5.0

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
naveen521kkcommented, Apr 13, 2021

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.

0reactions
naveen521kkcommented, Apr 16, 2021

https://github.com/ManimCommunity/ManimPango/pull/54 is merged, will do the release part and add it to manim tomorrow.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found