Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font path fix #115

Open
jorgeolothar opened this issue Sep 5, 2024 · 1 comment
Open

Font path fix #115

jorgeolothar opened this issue Sep 5, 2024 · 1 comment

Comments

@jorgeolothar
Copy link
Contributor

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")

@wufan-tb
Copy link
Collaborator

Thanks for your kindly correction, it is a careless mistake indeed and we are going to fix it in the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants