3b1b / manim

Animation engine for explanatory math videos
MIT License
62.66k stars 5.81k forks source link

Non-Western fonts cannot align Western fonts and formulas #2042

Open TXFK opened 1 year ago

TXFK commented 1 year ago

As the picture showed, Non-Western(Chinese, Japanese, for example) fonts cannot align Western fonts and formulas.

Here is the code:

from manimlib import *
class Example(Scene):
    def construct(self):
        self.play(
            Write(
                MTexText("勾股定理 Pythagorean theorem のぬ $a^2+b^2=c^2$")
            )
        )
sundebug commented 1 year ago

I reinstall textlive-fontsextra solve this problem

TXFK commented 1 year ago

I reinstall textlive-fontsextra solve this problem

Im sorry but could you please tell me more details? Thanks a lot.

I didnt re-installed fontsextra but I re-installed the whole Texlive. The problem still existed.