Java应用程序菜单字体乱码

发布于 2024-10-12 09:13:17 字数 493 浏览 1 评论 0原文

我正在尝试更改 Java 应用程序中的菜单字体(OmegaT http://www.omegat.org)。但是,当我更改 Windows 7 64 位中的默认菜单字体(在“高级外观设置...”下)时,菜单和文件对话框会出现乱码,如以下屏幕截图所示: http://www.sbbic.org/omegat/1.jpg(甚至选择 Tahoma因为默认字体会导致此问题)。

有没有人以前见过这个乱码并知道如何解决它,或者对故障排除有一些建议?

是Java的问题吗? OmegaT 据说只是使用 Windows 的默认字体...

我已经联系了 OmegaT 的开发人员,但他们不知道问题是什么。我认为通过在这里发布我的问题,其他人可能也遇到过同样的错误并知道如何解决它。

谢谢, 内森

I am trying to change the menu font in a Java application (OmegaT http://www.omegat.org). However, when I change the default menu font in Windows 7 64-bit (under "Advanced Appearance Settings...") the menus as well as file dialogs become garbled as this screen-shot shows:
http://www.sbbic.org/omegat/1.jpg (even selecting Tahoma as the default font causes this problem).

Has anyone ever seen this garbling text before and know how to solve it, or have some suggestions on troubleshooting?

Is it a Java issue? OmegaT is supposedly just using the default fonts from Windows...

I have contacted the developers of OmegaT, but they are at a loss for what the issue is. I thought by posting my question here, others might have encountered the same error and know how to resolve it.

Thanks,
Nathan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

萌面超妹 2024-10-19 09:13:17

关闭 Windows ClearType 字体设置对我有用。这花了我几个小时才弄清楚。我使用的导致我出现问题的应用程序是 ReportWorks for PowerSchool。

Turning off Windows ClearType font settings worked me for. This took me hours to figure out. The app I was using that was causing me problems was ReportWorks for PowerSchool.

£噩梦荏苒 2024-10-19 09:13:17

我删除了 system32 目录中的 FNTCACHE.DAT 并重新启动,似乎修复了它。诡异的。
http://windows7forums .com/windows-7-support/49179-windows-7-64-bit-fonts-not-shown-4.html
所以我猜这是一个 Windows 问题,而不是 Java 问题。

谢谢。

I deleted FNTCACHE.DAT in my system32 directory and rebooted, and it seemed to fix it. Weird.
http://windows7forums.com/windows-7-support/49179-windows-7-64-bit-fonts-not-shown-4.html
so I guess it was a Windows issue and not Java at all.

Thanks.

别把无礼当个性 2024-10-19 09:13:17

不要关闭 ClearType,只需对其进行调整即可。作者:Andrey Rast(来源)搜索 ClearType 并对其进行调整。之后 Java 错误就会消失。

我已经在 Arduino IDE 和 JetBrains IDE 上尝试过。它给了我同样的错误

线程“main”中出现异常 java.lang.ExceptionInInitializerError
引起原因:java.lang.IllegalArgumentException:33与文本特定的LCD对比度键不兼容

并且,检查您的 Java 版本是否与 Env si JRE 相同。

Do not Turn off ClearType, just tune it. By Andrey Rast (Source) search ClearType and tune it. After that Java error will disappear.

I already tried it for Arduino IDE and JetBrains IDE. It gave me the same error

Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.IllegalArgumentException: 33 incompatible with Text-specific LCD contrast key

And, check your Java versions for Env si JRE to be the same.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文