Linux下JDK1.6的字体设置
先前写过了一个LINUX下图形乱码问题 http://runqian-ros.ticp.net:81/reportmis/RBP-19588
当时客户用的是JDK 1.4版本,用文章说的可以解决,现在随着JDK的升级现在到了1.6版本,用1.4的方法已经解决不了文件已经发生变化。1.4版本改font.properties文件,JDK1.6里面字体配置文件变成了fontconfig.properties而且里面内容也不一样了。后来在网上找到一篇文章,改好了把配置文件贴出来。
# Version
version=1
# Component Font Mappings
allfonts.chinese-gb18030=-microsoft-microsoft jhenghei-medium-r-normal–0-0-0-0-p-0-gb18030.2000-0
allfonts.chinese-gb18030.motif=-microsoft-microsoft jhenghei-medium-r-normal–0-0-0-0-p-0-gb18030.2000-0
allfonts.chinese-big5=-microsoft-microsoft jhenghei-medium-r-normal–0-0-0-0-p-0-gb18030.2000-0
allfonts.chinese-big5.motif=-microsoft-microsoft jhenghei-medium-r-normal–0-0-0-0-p-0-gb18030.2000-0
allfonts.lucida=-bitstream-bitstream vera sans-medium-r-normal–0-0-0-0-p-0-iso8859-1
serif.plain.japanese-x0208=-microsoft-meiryo-medium-r-normal–0-0-0-0-p-0-jisx0208.1990-0
serif.plain.korean=-microsoft-malgun gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1
serif.plain.korean.motif=-microsoft-malgun gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1
serif.plain.latin-1=-bitstream-bitstream vera serif-medium-r-normal–0-0-0-0-p-0-iso8859-1
serif.plain.latin-1.motif=-bitstream-bitstream vera serif-medium-r-normal–0-0-0-0-p-0-iso8859-1
serif.bold.japanese-x0208=-microsoft-meiryo-bold-r-normal–0-0-0-0-p-0-jisx0208.1990-0
serif.bold.korean=-microsoft-malgun gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1
serif.bold.korean.motif=-microsoft-malgun gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1
serif.bold.latin-1=-bitstream-bitstream vera serif-bold-r-normal–0-0-0-0-p-0-iso8859-1
serif.bold.latin-1.motif=-bitstream-bitstream vera serif-bold-r-normal–0-0-0-0-p-0-iso8859-1
serif.italic.japanese-x0208=-microsoft-meiryo-medium-i-normal–0-0-0-0-p-0-jisx0208.1990-0
serif.italic.korean=-microsoft-malgun gothic-medium-i-normal–0-0-0-0-p-0-iso10646-1
serif.italic.korean.motif=-microsoft-malgun gothic-medium-i-normal–0-0-0-0-p-0-iso10646-1
serif.italic.latin-1=-bitstream-bitstream vera serif-medium-i-normal–0-0-0-0-p-0-iso8859-1
serif.italic.latin-1.motif=-bitstream-bitstream vera serif-medium-i-normal–0-0-0-0-p-0-iso8859-1
serif.bolditalic.japanese-x0208=-microsoft-meiryo-bold-i-normal–0-0-0-0-p-0-jisx0208.1990-0
serif.bolditalic.korean=-microsoft-malgun gothic-bold-i-normal–0-0-0-0-p-0-iso10646-1
serif.bolditalic.korean.motif=-microsoft-malgun gothic-bold-i-normal–0-0-0-0-p-0-iso10646-1
serif.bolditalic.latin-1=-bitstream-bitstream vera serif-bold-i-normal–0-0-0-0-p-0-iso8859-1
serif.bolditalic.latin-1.motif=-bitstream-bitstream vera serif-bold-i-normal–0-0-0-0-p-0-iso8859-1
sansserif.plain.japanese-x0208=-microsoft-meiryo-medium-r-normal–0-0-0-0-p-0-jisx0208.1990-0
sansserif.plain.korean=-microsoft-malgun gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1
sansserif.plain.korean.motif=-microsoft-malgun gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1
sansserif.plain.latin-1=-bitstream-bitstream vera sans-medium-r-normal–0-0-0-0-p-0-iso8859-1
sansserif.plain.latin-1.motif=-bitstream-bitstream vera sans-medium-r-normal–0-0-0-0-p-0-iso8859-1
sansserif.bold.japanese-x0208=-microsoft-meiryo-bold-r-normal–0-0-0-0-p-0-jisx0208.1990-0
sansserif.bold.korean=-microsoft-malgun gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1
sansserif.bold.korean.motif=-microsoft-malgun gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1
sansserif.bold.latin-1=-bitstream-bitstream vera sans-bold-r-normal–0-0-0-0-p-0-iso8859-1
sansserif.bold.latin-1.motif=-bitstream-bitstream vera sans-bold-r-normal–0-0-0-0-p-0-iso8859-1
sansserif.italic.japanese-x0208=-microsoft-meiryo-medium-i-normal–0-0-0-0-p-0-jisx0208.1990-0
sansserif.italic.korean=-microsoft-malgun gothic-medium-i-normal–0-0-0-0-p-0-iso10646-1
sansserif.italic.korean.motif=-microsoft-malgun gothic-medium-i-normal–0-0-0-0-p-0-iso10646-1
sansserif.italic.latin-1=-bitstream-bitstream vera sans-medium-o-normal–0-0-0-0-p-0-iso8859-1
sansserif.italic.latin-1.motif=-bitstream-bitstream vera sans-medium-o-normal–0-0-0-0-p-0-iso8859-1
sansserif.bolditalic.japanese-x0208=-microsoft-meiryo-bold-i-normal–0-0-0-0-p-0-jisx0208.1990-0
sansserif.bolditalic.korean=-microsoft-malgun gothic-bold-i-normal–0-0-0-0-p-0-iso10646-1
sansserif.bolditalic.korean.motif=-microsoft-malgun gothic-bold-i-normal–0-0-0-0-p-0-iso10646-1
sansserif.bolditalic.latin-1=-bitstream-bitstream vera sans-bold-o-normal–0-0-0-0-p-0-iso8859-1
sansserif.bolditalic.latin-1.motif=-bitstream-bitstream vera sans-bold-o-normal–0-0-0-0-p-0-iso8859-1
monospaced.plain.japanese-x0208=-microsoft-meiryo-medium-r-normal–0-0-0-0-p-0-jisx0208.1990-0
monospaced.plain.korean=-microsoft-malgun gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1
monospaced.plain.korean.motif=-microsoft-malgun gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1
monospaced.plain.latin-1=-bitstream-bitstream vera sans mono-medium-r-normal–0-0-0-0-m-0-iso8859-1
monospaced.plain.latin-1.motif=-bitstream-bitstream vera sans mono-medium-r-normal–0-0-0-0-m-0-iso8859-1
monospaced.bold.japanese-x0208=-microsoft-meiryo-bold-r-normal–0-0-0-0-p-0-jisx0208.1990-0
monospaced.bold.korean=-microsoft-malgun gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1
monospaced.bold.korean.motif=-microsoft-malgun gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1
monospaced.bold.latin-1=-bitstream-bitstream vera sans mono-bold-r-normal–0-0-0-0-m-0-iso8859-1
monospaced.bold.latin-1.motif=-bitstream-bitstream vera sans mono-bold-r-normal–0-0-0-0-m-0-iso8859-1
monospaced.italic.japanese-x0208=-microsoft-meiryo-medium-i-normal–0-0-0-0-p-0-jisx0208.1990-0
monospaced.italic.korean=-microsoft-malgun gothic-medium-i-normal–0-0-0-0-p-0-iso10646-1
monospaced.italic.korean.motif=-microsoft-malgun gothic-medium-i-normal–0-0-0-0-p-0-iso10646-1
monospaced.italic.latin-1=-bitstream-bitstream vera sans mono-medium-o-normal–0-0-0-0-m-0-iso8859-1
monospaced.italic.latin-1.motif=-bitstream-bitstream vera sans mono-medium-o-normal–0-0-0-0-m-0-iso8859-1
monospaced.bolditalic.japanese-x0208=-microsoft-meiryo-bold-i-normal–0-0-0-0-p-0-jisx0208.1990-0
monospaced.bolditalic.korean=-microsoft-malgun gothic-bold-i-normal–0-0-0-0-p-0-iso10646-1
monospaced.bolditalic.korean.motif=-microsoft-malgun gothic-bold-i-normal–0-0-0-0-p-0-iso10646-1
monospaced.bolditalic.latin-1=-bitstream-bitstream vera sans mono-bold-o-normal–0-0-0-0-m-0-iso8859-1
monospaced.bolditalic.latin-1.motif=-bitstream-bitstream vera sans mono-bold-o-normal–0-0-0-0-m-0-iso8859-1
dialog.plain.japanese-x0208=-microsoft-meiryo-medium-r-normal–0-0-0-0-p-0-jisx0208.1990-0
dialog.plain.korean=-microsoft-malgun gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1
dialog.plain.korean.motif=-microsoft-malgun gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1
dialog.plain.latin-1=bitstream-bitstream vera sans-medium-r-normal–0-0-0-0-p-0-iso8859-1
dialog.plain.latin-1.motif=bitstream-bitstream vera sans-medium-r-normal–0-0-0-0-p-0-iso8859-1
dialog.bold.japanese-x0208=-microsoft-meiryo-bold-r-normal–0-0-0-0-p-0-jisx0208.1990-0
dialog.bold.korean=-microsoft-malgun gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1
dialog.bold.korean.motif=-microsoft-malgun gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1
dialog.bold.latin-1=itstream-bitstream vera sans-bold-r-normal–0-0-0-0-p-0-iso8859-1
dialog.bold.latin-1.motif=itstream-bitstream vera sans-bold-r-normal–0-0-0-0-p-0-iso8859-1
dialog.italic.japanese-x0208=-microsoft-meiryo-medium-i-normal–0-0-0-0-p-0-jisx0208.1990-0
dialog.italic.korean=-microsoft-malgun gothic-medium-i-normal–0-0-0-0-p-0-iso10646-1
dialog.italic.korean.motif=-microsoft-malgun gothic-medium-i-normal–0-0-0-0-p-0-iso10646-1
dialog.italic.latin-1=-bitstream-bitstream vera sans-medium-o-normal–0-0-0-0-p-0-iso8859-1
dialog.italic.latin-1.motif=-bitstream-bitstream vera sans-medium-o-normal–0-0-0-0-p-0-iso8859-1
dialog.bolditalic.japanese-x0208=-microsoft-meiryo-bold-i-normal–0-0-0-0-p-0-jisx0208.1990-0
dialog.bolditalic.korean=-microsoft-malgun gothic-bold-i-normal–0-0-0-0-p-0-iso10646-1
dialog.bolditalic.korean.motif=-microsoft-malgun gothic-bold-i-normal–0-0-0-0-p-0-iso10646-1
dialog.bolditalic.latin-1=-bitstream-bitstream vera sans-bold-o-normal–0-0-0-0-p-0-iso8859-1
dialog.bolditalic.latin-1.motif=-bitstream-bitstream vera sans-bold-o-normal–0-0-0-0-p-0-iso8859-1
dialoginput.plain.japanese-x0208=-microsoft-meiryo-medium-r-normal–0-0-0-0-p-0-jisx0208.1990-0
dialoginput.plain.korean=-microsoft-malgun gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1
dialoginput.plain.korean.motif=–microsoft-malgun gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1
dialoginput.plain.latin-1=-bitstream-bitstream vera sans mono-medium-r-normal–0-0-0-0-m-0-iso8859-1
dialoginput.plain.latin-1.motif=-bitstream-bitstream vera sans mono-medium-r-normal–0-0-0-0-m-0-iso8859-1
dialoginput.bold.japanese-x0208=-microsoft-meiryo-bold-r-normal–0-0-0-0-p-0-jisx0208.1990-0
dialoginput.bold.korean=-microsoft-malgun gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1
dialoginput.bold.korean.motif=-microsoft-malgun gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1
dialoginput.bold.latin-1=-bitstream-bitstream vera sans mono-bold-r-normal–0-0-0-0-m-0-iso8859-1
dialoginput.bold.latin-1.motif=-bitstream-bitstream vera sans mono-bold-r-normal–0-0-0-0-m-0-iso8859-1
dialoginput.italic.japanese-x0208=-microsoft-meiryo-medium-i-normal–0-0-0-0-p-0-jisx0208.1990-0
dialoginput.italic.korean=-microsoft-malgun gothic-medium-i-normal–0-0-0-0-p-0-iso10646-1
dialoginput.italic.korean.motif=-microsoft-malgun gothic-medium-i-normal–0-0-0-0-p-0-iso10646-1
dialoginput.italic.latin-1=-bitstream-bitstream vera sans mono-medium-o-normal–0-0-0-0-m-0-iso8859-1
dialoginput.italic.latin-1.motif=-bitstream-bitstream vera sans mono-medium-o-normal–0-0-0-0-m-0-iso8859-1
dialoginput.bolditalic.japanese-x0208=-microsoft-meiryo-bold-i-normal–0-0-0-0-p-0-jisx0208.1990-0
dialoginput.bolditalic.korean=-microsoft-malgun gothic-bold-i-normal–0-0-0-0-p-0-iso10646-1
dialoginput.bolditalic.korean.motif=-microsoft-malgun gothic-bold-i-normal–0-0-0-0-p-0-iso10646-1
dialoginput.bolditalic.latin-1=-bitstream-bitstream vera sans mono-bold-o-normal–0-0-0-0-m-0-iso8859-1
dialoginput.bolditalic.latin-1.motif=-bitstream-bitstream vera sans mono-bold-o-normal–0-0-0-0-m-0-iso8859-1
# Search Sequences
sequence.allfonts=latin-1
sequence.allfonts.Big5=latin-1,chinese-big5
sequence.allfonts.GB2312=latin-1,chinese-gb18030
sequence.allfonts.x-euc-jp-linux=latin-1,japanese-x0208
sequence.allfonts.EUC-KR=latin-1,korean
sequence.allfonts.GB18030=latin-1,chinese-gb18030
sequence.fallback=lucida,chinese-big5,chinese-gb18030,japanese-x0208,korean
# Exclusion Ranges
exclusion.japanese-x0208=0390-03d6,2200-22ef,2701-27be
# 下面是要加的部分
# Font File Names
filename.-microsoft-microsoft_jhenghei-medium-r-normal–0-0-0-0-p-0-gb18030.2000-0=/usr/share/fonts/TTF/msjh.ttf
filename.-microsoft-microsoft_jhenghei-bold-r-normal–0-0-0-0-p-0-gb18030.2000-0=/usr/share/fonts/TTF/msjhbd.ttf
filename.-microsoft-meiryo-medium-r-normal–0-0-0-0-p-0-jisx0208.1990-0=/usr/share/fonts/TTF/meiryo.ttc
filename.-microsoft-meiryo-bold-r-normal–0-0-0-0-p-0-jisx0208.1990-0=/usr/share/fonts/TTF/meiryob.ttc
filename.-microsoft-malgun_gothic-medium-r-normal–0-0-0-0-p-0-iso10646-1=/usr/share/fonts/TTF/malgun.ttf
filename.-microsoft-malgun_gothic-bold-r-normal–0-0-0-0-p-0-iso10646-1=/usr/share/fonts/TTF/malgunbd.ttf
filename.-bitstream-bitstream_vera_sans-medium-r-normal–0-0-0-0-p-0-iso8859-1=/usr/share/fonts/ttf-bitstream-vera/Vera.ttf
filename.-bitstream-bitstream_vera_sans-bold-o-normal–0-0-0-0-p-0-iso8859-1=/usr/share/fonts/ttf-bitstream-vera/VeraBI.ttf
filename.-bitstream-bitstream_vera_sans-bold-r-normal–0-0-0-0-p-0-iso8859-1=/usr/share/fonts/ttf-bitstream-vera/VeraBd.ttf
filename.-bitstream-bitstream_vera_sans-medium-o-normal–0-0-0-0-p-0-iso8859-1=/usr/share/fonts/ttf-bitstream-vera/VeraIt.ttf
filename.-bitstream-bitstream_vera_sans_mono-bold-o-normal–0-0-0-0-m-0-iso8859-1=/usr/share/fonts/ttf-bitstream-vera/VeraMoBI.ttf
filename.-bitstream-bitstream_vera_sans_mono-bold-r-normal–0-0-0-0-m-0-iso8859-1=/usr/share/fonts/ttf-bitstream-vera/VeraMoBd.ttf
filename.-bitstream-bitstream_vera_sans_mono-medium-o-normal–0-0-0-0-m-0-iso8859-1=/usr/share/fonts/ttf-bitstream-vera/VeraMoIt.ttf
filename.-bitstream-bitstream_vera_sans_mono-medium-r-normal–0-0-0-0-m-0-iso8859-1=/usr/share/fonts/ttf-bitstream-vera/VeraMono.ttf
filename.-bitstream-bitstream_vera_serif-medium-r-normal–0-0-0-0-p-0-iso8859-1=/usr/share/fonts/ttf-bitstream-vera/VeraSe.ttf
filename.-bitstream-bitstream_vera_serif-bold-r-normal–0-0-0-0-p-0-iso8859-1=/usr/share/fonts/ttf-bitstream-vera/VeraSeBd.ttf
# AWT X11 font paths
awtfontpath.latin-1=/usr/share/fonts/ttf-bitstream-vera
awtfontpath.chinese-big5=/usr/share/fonts/TTF
awtfontpath.chinese-gb18030=/usr/share/fonts/TTF
awtfontpath.japanese-x0208=/usr/share/fonts/TTF
awtfontpath.korean=/usr/share/fonts/TTF