|
我的locale 为 LANG=zh_CN.UTF-8
可是在运行 一些 java程序是会出错。如Freemind matlab界面 。如freemind的错误如下,看起来是truetypefont出了问题
不过,不过 运行java程序前 运行 export LANG=en_GB.UTF-8就不会有问题 。
那位大虾给个好的解决办法。我已经改了java的fontconfig文件了。
Default (System) Look & Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:60: Engine "clearlooks" is unsupported, ignoring
Exception in thread "main" java.lang.IllegalArgumentException
at java.nio.Buffer.position(Buffer.java:218)
at sun.font.TrueTypeFont.lookupName(TrueTypeFont.java:818)
at sun.font.TrueTypeFont.getFamilyName(TrueTypeFont.java:884)
at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:476)
at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:494)
at freemind.main.Tools.getAvailableFontFamilyNames(Tools.java:179)
at freemind.main.Tools.isAvailableFontFamily(Tools.java:202)
at freemind.controller.Controller.<init>(Controller.java:228)
at freemind.main.FreeMind.<init>(FreeMind.java:227)
at freemind.main.FreeMind.main(FreeMind.java:647) |
|