manim
manim copied to clipboard
Arabic text with less than 3 characters is not displayed
Bug description
Arabic text is correctly displayed when the number of characters is equal or more than 3. But with 1 or 2 characters nothing is displayed.
For example:
word = Text("صفي", font_size=96, font="Arial") # displayed
word = Text("في", font_size=96, font="Arial") # not displayed /!\
Code:
Following code display nothing
class TextTransformExample(Scene):
def construct(self):
word = Text("في", font_size=96, font="Arial")
self.play(Write(word))
self.wait()
I tried changing the font, but it seems that the problem is not related to the font
I'm not seeing the same issue. Can you let me know what os you're using? There have been some updates to the rendering since this issue, does it still not display for you?
Even though changing fonts didn't help you, it might still be a good idea to use a font that is known to support Arabic characters well. Fonts like Amiri or Noto Sans Arabic are specifically designed for Arabic text and might handle it better than Arial.