-
Notifications
You must be signed in to change notification settings - Fork 61
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
The Chinese in the picture is garbled #93
Comments
Same issue as @yihanglee-cn running on MacOS 14.4.1. As you can see when using the same font in |
需要换字体,换个字体就好了 |
你是怎么改字体的呀,我试了下面几个方案都不行
|
@yihanglee-cn I also tried changing it the font like that, I thinks it needs the full path but I haven't checked it yet. |
Waiting for your good news😁 |
我刚才说的不对,我仔细看了下。这程序是生成svg再转成png,自定义字体文件需要--font.family "WenQuanYi Zen Hei Mono" --font.file WenQuanYi_Zen_Hei_Mono.ttf一块用,但是在转png的时候也就是png.go,好像没有加载自定义的字体文件
如果你着急用的话,就把front/font.go下的//go:embed开头改下你需要的字体,然后编译后执行 |
Describe the bug
The Chinese in the code is garbled when I generate picture in Windows11.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Chinese is display normally
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: