Java应用程序菜单字体乱码
我正在尝试更改 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
关闭 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.
我删除了 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.
不要关闭 ClearType,只需对其进行调整即可。作者:Andrey Rast(来源)搜索 ClearType 并对其进行调整。之后 Java 错误就会消失。
我已经在 Arduino IDE 和 JetBrains IDE 上尝试过。它给了我同样的错误
并且,检查您的 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
And, check your Java versions for Env si JRE to be the same.