Open jorgeolothar opened 1 week ago
In latex2png.py -> zhtext2pil(), the font directory should be included:
latex2png.py
zhtext2pil()
fontText = ImageFont.truetype("simhei.ttf", 15, encoding="utf-8")
should be
fontText = ImageFont.truetype("assets/fonts/simhei.ttf", 15, encoding="utf-8")
In
latex2png.py
->zhtext2pil()
, the font directory should be included:fontText = ImageFont.truetype("simhei.ttf", 15, encoding="utf-8")
should be
fontText = ImageFont.truetype("assets/fonts/simhei.ttf", 15, encoding="utf-8")