Skip to content

Instantly share code, notes, and snippets.

@uwezi
Created July 15, 2025 07:37
Show Gist options
  • Save uwezi/e76ac77448f8245f436032cfa45a9829 to your computer and use it in GitHub Desktop.
Save uwezi/e76ac77448f8245f436032cfa45a9829 to your computer and use it in GitHub Desktop.
[test fonts] Test pango fonts for compatibility with non-latin scripts. #manim #pango #text #fontlist #font
from manim import *
class testarabic(Scene):
def construct(self):
i=0
texts = VGroup()
for font in Text.font_list():
print(font)
texts += VGroup(
Text(font, font_size=18).next_to([0,3.5-0.8*i,0],LEFT,buff=0.5),
Text("جيب", font=font).next_to([0,3.5-0.8*i,0],RIGHT,buff=0)
)
i = i+1
if i >=10:
self.add(texts)
self.wait()
self.remove(texts)
i = 0
texts = VGroup()
if i >=1:
self.add(texts)
self.wait()
self.remove(texts)
i = 0
texts = VGroup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment