菜单字体在Java应用程序中乱码 [英] Menu Font Garbled in Java Application

查看:310
本文介绍了菜单字体在Java应用程序中乱码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



有没有人曾经看过这个gar text的文字,并知道如何解决这个问题,或者对疑难解答有一些建议?



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

我已经联系了OmegaT的开发人员,但他们对这个问题感到不知所措。我想通过在这里发布我的问题,其他人可能会遇到同样的错误,并知道如何解决它。



谢谢,
Nathan

解决方案

我在我的system32目录中删除了FNTCACHE.DAT,并重新启动,似乎解决了这个问题。奇怪的。
http ://windows7forums.com/windows-7-support/49179-windows-7-64-bit-fonts-not-shown-4.html
所以我想这是一个Windows问题,而不是Java所有。



谢谢。


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

解决方案

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.

这篇关于菜单字体在Java应用程序中乱码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆