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

找不到字体 #1

Closed
FangYuFan opened this issue Aug 21, 2023 · 4 comments
Closed

找不到字体 #1

FangYuFan opened this issue Aug 21, 2023 · 4 comments

Comments

@FangYuFan
Copy link

FangYuFan commented Aug 21, 2023

是不是还需要上传字体
image

@FangYuFan
Copy link
Author

另外,自己添加字体后,发布exe,运行也有报错,你知道是哪里出错了吗
image

@alwaysmy
Copy link
Owner

哦我搞忘记这一点了,直接安装德意黑字体到系统后编译即可。

如果你不想用这个字体,去掉代码中对字体的包含,
就是这一段:

namespace fonts.德意黑{ 
    family = ..fonts.addFamily($"~/lib/fonts/.res/得意黑.ttf") 
}

然后修改用到这个字体的控件的字体选项就好了,我这里只有擦除和下载两个按键用了。
image

@alwaysmy
Copy link
Owner

alwaysmy commented Aug 21, 2023

另外,自己添加字体后,发布exe,运行也有报错,你知道是哪里出错了吗 image

这个看起来不是字体的问题,我没有触发过这个错误,可以告知一下你安装的pyocd版本是什么还有你手工执行pyocd list命令后显示什么吗(截个图),用我发布的exe也会出现同样的错误吗

@FangYuFan
Copy link
Author

另外,自己添加字体后,发布exe,运行也有报错,你知道是哪里出错了吗 image

这个看起来不是字体的问题,我没有触发过这个错误,可以告知一下你安装的pyocd版本是什么还有你手工执行pyocd list命令后显示什么吗(截个图),用我发布的exe也会出现同样的错误吗

用你打包的那个没啥问题,可能是我自己电脑环境的原因,我再看看

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