![](/img/trans.png)
[英]Java/Swing app on Win10/11 not responding to TaskBar Close-All-Windows GUI command
[英]GUI Java Application Compatible With Win7 But Not Compatible With Win10
字体似乎有问题,已被替换,并且字体大小发生了很大变化。 检查应用程序使用哪些字体以及系统上哪些字体。
考虑使用您的应用程序提供的免费(Linux)字体,使用registerFont
:
InputStream fontIn = getClass().getResourceAsStream("/... .ttf");
Font font = Font.createFont(Font.TRUETYPE_FONT, fontIn);
GraphicsEnvironment ge = graphicsEnvironment.getLocalGraphicsEnvironment();
ge.registerFont(font);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.