Topic: Redhat8 j2sdk显示中文解决方案

  Print this page

1.Redhat8 j2sdk显示中文解决方案 Copy to clipboard
Posted by: dany
Posted on: 2003-02-02 00:02

# @(#)font.properties.zh.Redhat.linux 1.4 02/10/13
#
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
#
# Creation By PenPen
#
#凡是有
#-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0
#便是各位可以自己修改的地方,这个是字体的指定,这里用的是simsun。
#各位可以用文本编辑器的替换功能一次性替换所有的字体设置,注意保值格式。
#关于字体设置的格式"--*-%d-*-*-c-*-"这些请不要修改。
#

# Component Font Mappings
#
serif.0=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1
serif.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

serif.italic.0=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1
serif.italic.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

serif.bold.0=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1
serif.bold.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

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

sansserif.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

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

sansserif.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.bold.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

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

monospaced.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

monospaced.italic.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.italic.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

monospaced.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bold.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

monospaced.bolditalic.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bolditalic.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

dialog.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

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

dialog.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bold.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

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

dialoginput.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

dialoginput.italic.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.italic.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

dialoginput.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bold.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

dialoginput.bolditalic.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bolditalic.1=-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

# Missing Glyph Character
#
default.char=274f

# Component Font Character Encodings
#
fontcharset.serif.0=sun.io.CharToByteISO8859_1
fontcharset.serif.1=sun.awt.motif.CharToByteX11GBK

fontcharset.sansserif.0=sun.io.CharToByteISO8859_1
fontcharset.sansserif.1=sun.awt.motif.CharToByteX11GBK

fontcharset.monospaced.0=sun.io.CharToByteISO8859_1
fontcharset.monospaced.1=sun.awt.motif.CharToByteX11GBK

fontcharset.dialog.0=sun.io.CharToByteISO8859_1
fontcharset.dialog.1=sun.awt.motif.CharToByteX11GBK

fontcharset.dialoginput.0=sun.io.CharToByteISO8859_1
fontcharset.dialoginput.1=sun.awt.motif.CharToByteX11GBK

# Exclusion Ranges
#

# XFontSet Information
#
fontset.serif.plain=
-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.serif.italic=
-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.serif.bold=
-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.serif.bolditalic=
-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.sansserif.plain=
-b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.sansserif.italic=
-b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.sansserif.bold=
-b&h-lucida-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.sansserif.bolditalic=
-b&h-lucida-bold-i-normal-snas-*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.monospaced.plain=
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.monospaced.italic=
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.monospaced.bold=
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-,1
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.monospaced.bolditalic=
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.dialog.italic=
-b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.dialog.bold=
-b&h-lucida-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.dialog.bolditalic=
-b&h-lucida-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.dialog.plain=
-b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.dialoginput.italic=
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.dialoginput.bold=
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.dialoginput.bolditalic=
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.dialoginput.plain=
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

fontset.default=
-b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,
-misc-simsun-medium-r-normal--*-%d-*-*-c-*-gb2312.1980-0

appendedfontpath=/usr/X11R6/lib/X11/fonts/TrueType
#"/usr/X11R6/lib/X11/fonts/TrueType"为你所用字体所在的位置

2.Re:Redhat8 j2sdk显示中文解决方案 [Re: dany] Copy to clipboard
Posted by: dany
Posted on: 2003-02-02 00:08

上面的方案认为你已经安装了simsun.ttf的Truetype字体(参加www.linuxsir.com/bbs上面的rh8美化的文章)将上面的文档保存为font.properties.zh.Redhat,将此文件copy到你的$JAVA_HOME/jre/lib下面。我的是保存到/usr/java/j2sdk1.4.1_01/jre/lib目录下面。现在在applet里面可以显示汉字了。
我在rh8下面将上面的字体配置文件保存到jbuilder8带的jdk里面的jre/lib里面,现在jbuilder8也可以显示中文了。


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923