问题:Freemind在编码设置为zh_CN.UTF8的Linux下运行时中文字显示为方块(或无显示)
其实也就是一个font的问题。Google了一圈,找到一些在JRE中修改font.properties的方法。但是都没有解决问题。
最后在Sun的网站上找到了解决办法
Internationalization FAQ,很简单:
Since the mapping from logical fonts to physical fonts is
implementation dependent, the answer varies.
For Sun's JRE 5.0, the
easiest way is to install the font into the JRE's lib/fonts/fallback
directory - it will be automatically added as a fallback font to all
logical fonts for 2D rendering.
还有一些关于font.properties的解释:
For AWT, you may need to modify a
font configuration file - see the web page
Font
Configuration Files. For earlier versions of Sun's JRE, you need
to edit
font.properties files - see the Font.properties Files
documents for
J2SE 1.4.2
and
J2SE 1.3.1.
Note however that editing these files is a modification of the JRE,
and Sun does not support modified JREs. For other implementations,
see their respective documentation.