[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 安装字体失败



"Ryan Wu (kDolphin)" <kdolphin@gmail.com> writes:

> 正好问一下java如何配置汉字?

sun-j2sdk1.4是这样配置的:

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

然后把 font.properties.zh 中所有的:
-tlc-song-medium-r-normal--*-%d-*-*-c-*-gbk-0
通通替换成:
-sim-simsun-medium-r-normal--0-0-0-0-c-0-gbk-0

再把 /usr/lib/j2sdk1.4-sun/jre/lib/fonts/fonts/fonts.dir
的第一行从 72 改为 73,再在后面加一行:
simsun.ttf -sim-simsun-medium-r-normal--0-0-0-0-c-0-gbk-0
变成这个样子:

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
......

sun-j2sdk1.5不知道怎么搞。

-- 
Zhang Wei or Brep
<brep@newsmth.org>



Reply to: