Created
July 15, 2025 07:37
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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