manim
manim copied to clipboard
Rendering rtl text with gradient or t2g keywords on Text object
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