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

Arabic text with less than 3 characters is not displayed #2164

Open
AyoubOm opened this issue Sep 8, 2024 · 2 comments
Open

Arabic text with less than 3 characters is not displayed #2164

AyoubOm opened this issue Sep 8, 2024 · 2 comments
Labels

Comments

@AyoubOm
Copy link

AyoubOm commented Sep 8, 2024

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 AyoubOm added the bug label Sep 8, 2024
@3b1b
Copy link
Owner

3b1b commented Oct 10, 2024

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?

@theroshanantony
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants