manim icon indicating copy to clipboard operation
manim copied to clipboard

Arabic text with less than 3 characters is not displayed

Open AyoubOm opened this issue 1 year ago • 2 comments

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

AyoubOm avatar Sep 08 '24 10:09 AyoubOm

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?

3b1b avatar Oct 10 '24 20:10 3b1b

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.

theroshanantony avatar Oct 13 '24 18:10 theroshanantony