首先這是我的系統環境
Debian testing
安裝JAVA(jre+jdk使用下列方法):
- 下載sun 提供的jre&jdk最新版.bin
apt-get install java-package fakeroot
- 01:fakeroot make-jpkg jre-1_5_0_05-linux-i586.bin
02:dpkg -i sun-j2re1.5_1.5.0+update05_i386.deb
- 01:fakeroot make-jpkg jdk-1_5_0_05-linux-i586.bin
02:dpkg -i sun-j2sdk1.5_1.5.0+update05_i386.deb
而後經java -version 測試後,有東西,沒有錯誤,然後http://www.java.com/en/download/help/testvm.xml可看到java的 dancing Duke logo在那跑來跑去。
然後中文的部份我是這樣設定的
- cd /usr/lib/j2re1.5-sun/lib/
cp fontconfig.properties.src fontconfig.properties
然後用vi編輯 fontconfig.properties
- 代碼: 選擇全部
# @(#)linux.fontconfig.properties 1.2 03/10/28
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
#
# Version
version=1
# Component Font Mappings
#加入以下二行
allfonts.chinese-big5=-arphic-ar pl new sung-medium-r-normal--*-%d-*-*-c-*-big5-0
allfonts.lucida=-arphic-ar pl new sung-medium-r-normal--*-%d-*-*-c-*-iso8859-1
#這裡開始一直到Font File Names之間都沒動
serif.plain.latin-1=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1
serif.bold.latin-1=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1
serif.italic.latin-1=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1
serif.bolditalic.latin-1=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1
sansserif.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
monospaced.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
dialog.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialoginput.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
# Search Sequences
sequence.allfonts=latin-1
# Exclusion Ranges
# Font File Names 加入以下二行
filename.-arphic-ar pl new sung-medium-r-normal--*-%d-*-*-c-*-big5-0=/usr/share/fonts/truetype/fireflysung.ttf
filename.allfonts.lucida=-arphic-ar pl new sung-medium-r-normal--*-%d-*-*-c-*-iso8859-1=/usr/share/fonts/truetype/fireflysung.ttf
然後中文跑不出來 Orz…真的不知道哪裡用錯了
附上xlsfonts sung | grep 之結果
- 代碼: 選擇全部
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-big5-0
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-cns11643.1992-1
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-cns11643.1992-2
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-cns11643.1992-3
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-cns11643.1992-4
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-cns11643.1992-5
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-cns11643.1992-6
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-cns11643.1992-7
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-gbk-0
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-c-0-iso8859-1
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-big5-0
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-cns11643.1992-1
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-cns11643.1992-2
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-cns11643.1992-3
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-cns11643.1992-4
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-cns11643.1992-5
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-cns11643.1992-6
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-cns11643.1992-7
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-gb18030.2000-0
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-gb2312.1980-0
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-gbk-0
-arphic-ar pl new sung-medium-r-normal--0-0-0-0-m-0-iso8859-1
中文的部份還請幫個忙…
另外不解的小問題就是…裝了jre後不是要做一些動作firefox的java plugin才會啟動不是嗎?…為啥我裝了就直接可以用了@@?