[分享]6.06的j2re显示中文

为当前最终发行版之前的所有版本提供支持
回复
头像
蝴蝶兰
帖子: 202
注册时间: 2006-04-18 10:13
来自: china
送出感谢: 0
接收感谢: 0
联系:

[分享]6.06的j2re显示中文

#1

帖子 蝴蝶兰 » 2006-06-03 0:51

刚才设置了一下j2re的中文显示。把它记录在这里。
1)把/usr/lib/j2se/1.4/jre/lib/font.properties.zh_CN.Sun留下,其余的同类文件都删了!
2)将留下的这个文件改名为font.properties,再把内容改为如下:
# @(#)font.properties.zh_CN.Sun.linux 1.1 03/07/14
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
#

# Component Font Mappings For Linux zh_CN_U_UTF8
#
serif.0=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1
serif.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

serif.italic.0=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1
serif.italic.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

serif.bold.0=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1
serif.bold.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

serif.bolditalic.0=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1
serif.bolditalic.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

sansserif.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

sansserif.italic.0=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.italic.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

sansserif.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.bold.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

sansserif.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1sansserif.bolditalic.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

monospaced.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

monospaced.italic.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.italic.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

monospaced.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bold.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

monospaced.bolditalic.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bolditalic.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

dialog.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

dialog.italic.0=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.italic.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

dialog.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bold.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

dialog.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bolditalic.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

dialoginput.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

dialoginput.italic.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.italic.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

dialoginput.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bold.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

dialoginput.bolditalic.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bolditalic.1=-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

# Missing Glyph Character
#
default.char=274f

# Component Font Character Encodings
#
fontcharset.serif.0=sun.io.CharToByteISO8859_1
fontcharset.serif.1=sun.io.CharToByteUnicodeBigUnmarked

fontcharset.sansserif.0=sun.io.CharToByteISO8859_1
fontcharset.sansserif.1=sun.io.CharToByteUnicodeBigUnmarked

fontcharset.monospaced.0=sun.io.CharToByteISO8859_1
fontcharset.monospaced.1=sun.io.CharToByteUnicodeBigUnmarked

fontcharset.dialog.0=sun.io.CharToByteISO8859_1
fontcharset.dialog.1=sun.io.CharToByteUnicodeBigUnmarked

fontcharset.dialoginput.0=sun.io.CharToByteISO8859_1
fontcharset.dialoginput.1=sun.io.CharToByteUnicodeBigUnmarked

# Exclusion Ranges
#

# XFontSet Information
#
fontset.serif.plain=\
-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.serif.italic=\
-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.serif.bold=\
-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.serif.bolditalic=\
-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.sansserif.plain=\
-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.sansserif.italic=\
-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.sansserif.bold=\
-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.sansserif.bolditalic=\
-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.monospaced.plain=\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.monospaced.italic=\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.monospaced.bold=\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.monospaced.bolditalic=\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.dialog.italic=\
-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.dialog.bold=\
-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.dialog.bolditalic=\
-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.dialog.plain=\
-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.dialoginput.italic=\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.dialoginput.bold=\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.dialoginput.bolditalic=\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.dialoginput.plain=\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

fontset.default=\
-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

filename.-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0=/usr/share/fonts/truetype/arphic/uming.ttf

#appendedfontpath=/usr/X11R6/lib/X11/fonts/truetype

看一下贴图
附件
Screenshot.png
回避问题 = 曲线救国 = 棒槌
头像
蝴蝶兰
帖子: 202
注册时间: 2006-04-18 10:13
来自: china
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 蝴蝶兰 » 2006-06-03 0:54

呵呵,太晚了,要去睡觉了~~~~~~~~~~
回避问题 = 曲线救国 = 棒槌
NICMICHAEL
帖子: 309
注册时间: 2006-01-04 19:26
送出感谢: 0
接收感谢: 0

#3

帖子 NICMICHAEL » 2006-06-03 8:40

楼主费心了,谢谢!
Athlon 64 X2 Dual Core Processor 4200+ Socket 939 OC 2.8 GHZ
G.Skill DDR400 2 3 2 5 1GB *2 Dual Channel OC DDR500
Szgalaxy 8600 GTE 650MHZ/2000MHZ
Seagate 80GB *2 RAID 0+Maxtor 80G
DFI LanParty UT NF4-D
kernel 2.6.22-ck1 再见,Con Kolivas!
头像
蝴蝶兰
帖子: 202
注册时间: 2006-04-18 10:13
来自: china
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 蝴蝶兰 » 2006-06-03 22:10

把关键的一点给漏了,要在设定要显示的字体的目录执行两个命令,mkfontscale和mkfontdir,确保该目录下有fonts.dir和fonts.scale这两个文件。
-misc-ar pl shanheisun uni-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0这一句就来自这两个文件中。
回避问题 = 曲线救国 = 棒槌
头像
mhxueshan
帖子: 17
注册时间: 2007-01-14 2:00
来自: 湖南
送出感谢: 0
接收感谢: 0
联系:

#5

帖子 mhxueshan » 2007-01-15 14:08

我是ubuntn 6.10 装了JRE1.4 ,按照你的方法做了,显示不出中文来,还是口口,我看了一下:/usr/share/fonts/truetype/arphic这个目录,我执行了mkfontdir 和 mkfontscale这两个命令后,发现fonts.dir的内容是0,我想是不是这个原因??????
头像
mhxueshan
帖子: 17
注册时间: 2007-01-14 2:00
来自: 湖南
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 mhxueshan » 2007-01-15 14:21

还请问一下,JAVA规则工具,不能显示中文要用什么方法解决呢?
回复

回到 “老旧版本支持”