1. A simpler approach:
# Mkdir/usr/java/jdk1.6.0/jre/lib/fonts/fallback
# ln-s/usr/share/fonts/chinese/truetype/*.ttf/usr/java/jdk1.6.0/jre/lib/fonts/fallback//or copy the font directly to the past can be, I was actually going to copy the SIMSUN.TTC directly from the past when I was working.
2. Change the font of the configuration file:
Fontconfig.properties is a configuration file, the FONTCONFIG.PROPERTIES.SRC and
FONTCONFIG.BFC do not need, when you want to display Chinese garbled.
Add fonts can be modeled as
Fontconfig.properties write, should first put the font into the fonts directory, with Ttmkfdir generated Fonts.dir
Add to Fontconfig.properties.
Note: This is the configuration in 1.5, the previous version of the configuration can be
In the corresponding (region, version number, etc.) font.properties internal change
The following is a configuration file:
Font.properties
# @ (#) linux.fontconfig.SuSE.properties 1.2 03/10/17
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
#
# Version
Version=1
# Component Font Mappings
#latin-1 Java with its own fonts
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
#zh-1 Added founder-song body
Serif.plain.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Serif.bold.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Serif.italic.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Serif.bolditalic.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Sansserif.plain.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Sansserif.bold.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Sansserif.italic.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Sansserif.bolditalic.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Monospaced.plain.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Monospaced.bold.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Monospaced.italic.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Monospaced.bolditalic.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Dialog.plain.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Dialog.bold.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Dialog.italic.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Dialog.bolditalic.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Dialoginput.plain.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Dialoginput.bold.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Dialoginput.italic.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Dialoginput.bolditalic.zh-1=-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
#zh-2 addition of the song body
serif.plain.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
serif.bold.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
serif.italic.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
serif.bolditalic.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
sansserif.plain.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
sansserif.bold.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
sansserif.italic.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
sansserif.bolditalic.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
monospaced.plain.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
monospaced.bold.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
monospaced.italic.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
monospaced.bolditalic.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
dialog.plain.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
dialog.bold.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
dialog.italic.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
dialog.bolditalic.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
dialoginput.plain.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
dialoginput.bold.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
dialoginput.italic.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
dialoginput.bolditalic.zh-2=-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
# Search Sequences
Sequence.allfonts=latin-1,zh-2,zh-1
# exclusion Ranges
# Font File Names
Font.dir,font.scale (may not)
54
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
Lucidabrightdemibold.ttf-b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-1
Lucidabrightdemiitalic.ttf-b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-1
Lucidasansregular.ttf-b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-1
Lucidasansdemibold.ttf-b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-1
Lucidatypewriterregular.ttf-b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-1
Lucidatypewriterbold.ttf-b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-1
Lucidabrightregular.ttf-b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-2
Lucidabrightitalic.ttf-b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-2
Lucidabrightdemibold.ttf-b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-2
Lucidabrightdemiitalic.ttf-b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-2
Lucidasansregular.ttf-b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-2
Lucidasansdemibold.ttf-b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-2
Lucidatypewriterregular.ttf-b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-2
Lucidatypewriterbold.ttf-b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-2
Lucidabrightregular.ttf-b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-4
Lucidabrightitalic.ttf-b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-4
Lucidabrightdemibold.ttf-b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-4
Lucidabrightdemiitalic.ttf-b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-4
Lucidasansregular.ttf-b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-4
Lucidasansdemibold.ttf-b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-4
Lucidatypewriterregular.ttf-b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-4
Lucidatypewriterbold.ttf-b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-4
Lucidabrightregular.ttf-b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-5
Lucidabrightitalic.ttf-b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-5
Lucidabrightdemibold.ttf-b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-5
Lucidabrightdemiitalic.ttf-b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-5
Lucidasansregular.ttf-b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-5
Lucidasansdemibold.ttf-b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-5
Lucidatypewriterregular.ttf-b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-5
Lucidatypewriterbold.ttf-b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-5
Lucidabrightregular.ttf-b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-7
Lucidabrightitalic.ttf-b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-7
Lucidabrightdemibold.ttf-b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-7
Lucidabrightdemiitalic.ttf-b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-7
Lucidasansregular.ttf-b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-7
Lucidasansdemibold.ttf-b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-7
Lucidatypewriterregular.ttf-b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-7
Lucidatypewriterbold.ttf-b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-7
Lucidabrightregular.ttf-b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-9
Lucidabrightitalic.ttf-b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-9
Lucidabrightdemibold.ttf-b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-9
Lucidabrightdemiitalic.ttf-b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-9
Lucidasansregular.ttf-b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-9
Lucidasansdemibold.ttf-b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-9
Lucidatypewriterregular.ttf-b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-9
Lucidatypewriterbold.ttf-b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-9
Shusongjian.ttf-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-ascii-0
Shusongjian.ttf-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-gb2312.1980-0
Shusongjian.ttf-misc-fzshusong_z01s-medium-r-semi condensed--0-0-0-0-c-0-iso10646-1
simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttf-misc-simsun-medium-r-normal--0-0-0-0-c-0-gbk-0
My fonts (in the Fonts directory) are:
Lucidabrightdemiitalic.ttf
Lucidabrightdemibold.ttf
Lucidabrightitalic.ttf
Lucidabrightregular.ttf
Lucidasansdemibold.ttf
Lucidasansregular.ttf
Lucidatypewriterbold.ttf
Lucidatypewriterregular.ttf
Shusongjian.ttf//Two for added
Simsun.ttf