Debian下Java程序的中文

  一直以来Windows下习惯使用的FreeMind在Debian下中文显示一直有问题,我知道是Java的问题,但因为FreeMind使用率不高就一直挂着。今天Debian的maillist里有人正好说起j2sdk1.4的中文配置,按这位Zhang Wei兄的提示作下来中文终于出现:
[code]cp /where/ever/simsun.ttf /usr/lib/j2sdk1.4-sun/jre/lib/fonts/
cd /usr/lib/j2sdk1.4-sun/jre/lib/
cp font.properties.zh.Turbo font.properties.zh[/code]
然后把 font.properties.zh 中所有的:
[code]-tlc-song-medium-r-normal–*-%d-*-*-c-*-gbk-0[/code]
通通替换成:
[code]-sim-simsun-medium-r-normal–0-0-0-0-c-0-gbk-0[/code]
再把 /usr/lib/j2sdk1.4-sun/jre/lib/fonts/fonts/fonts.dir
的第一行从 72 改为 73,再在后面加一行:
[code]simsun.ttf -sim-simsun-medium-r-normal–0-0-0-0-c-0-gbk-0[/code]
变成这个样子:
[code]73
simsun.ttf -sim-simsun-medium-r-normal–0-0-0-0-c-0-gbk-0
LucidaBrightRegular.ttf -b&h-lucidabright-medium-r-normal–0-0-0-0-p-0-iso8859-1
LucidaBrightItalic.ttf
-b&h-lucidabright-medium-i-normal–0-0-0-0-p-0-iso8859-1
……[/code]
  这篇文章我没有提供FreeMind的链接,是因为忽然发现非但sourceforge.net被GFW封锁,而且访问链接的明文里有sourceforge.net也会被封,我自己访问都是透过地址加密的代理才可以。

Technorati Tags: , , , , , ,

Leave a Reply

Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).