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

Rendering rtl text with gradient or t2g keywords on Text object #4061

Open
ThomasGl opened this issue Dec 17, 2024 · 0 comments
Open

Rendering rtl text with gradient or t2g keywords on Text object #4061

ThomasGl opened this issue Dec 17, 2024 · 0 comments

Comments

@ThomasGl
Copy link

Description of bug / unexpected behavior

When passing a gradient or t2g arg to a Text object with a text from a rtl language it crashes

Expected behavior

Get an object able to render

How to reproduce the issue

Code for reproducing the problem

Uncomment the sections to get each of the errors. The gradient yield a silent error when rendering on screen, the t2g raises an error.

%%manim -qm -v WARNING LaTeXMathFonts

class LaTeXMathFonts(Scene):
    def construct(self):
        hebrew_text = Text(
            text="שלום עולם",
            font="Times New Roman",
            # t2g={
            #     '[1:-1]':(RED,BLUE),
            # } BUG
            # gradient = (RED, BLUE, GREEN) BUG

        )
        self.add(hebrew_text)

Additional comments

It should simply render with the gradients color, use John Doe insted for the text argument to see the expected result

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

1 participant