Bengali words printing out all wrong in manim

a 夏天 提交于 2021-02-17 06:58:06

问题


I had been trying to animate bengali characters using Manim. I used this method to use pc fonts in Manim. Everything seemed to be working well until i saw the output. For instance, if i write বাংলা লেখা i get the output as (look closely at the output) বাংলা লখো. Most of the times it spits out absolutely meaningless words.

The code used was:

class test_3(Scene):
    def construct(self):
        text1 = Text('বাংলা লেখা', font='Akaash')       
        text2 = Text('english text', font='Arial').move_to(DOWN)
        self.play(Write(text1), Write(text2))
        self.wait()

回答1:


This is because of font type.
You should use bangli font. Try any font from here



来源:https://stackoverflow.com/questions/61512704/bengali-words-printing-out-all-wrong-in-manim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!