Talking about Linux Java 1.5 Chinese characters Problem Solution First Note JDK1.5 Font Profile is fontconfig.properties and the previous version is font.properties 1. Locate fontconfig.trubo.Properties in JDK1.5 installation directory The following modified content is as follows: # 文件 内容 开始 # @ (#) Linux.fontconfig.Turbo.Properties 1.5 04/04/01 # # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. # # Version version = 1 # Component Font mappings allfonts.chinese-gbk = -Misc-simsun-medium-r-normal - * -% D - * - * - c - * - GBK-0 allfonts.chinese-GB2312 = -Misc-SIMSUN-Medium-r -NORMAL - * -% D - * - * - C - * - GB2312.1980-0 ALLFONTS.CHINESE-ISO10646 = -Misc-simsun-medium-r-normal - * -% D - * - * - C - * - ISO10646-1 Allfonts.Chinese-Big5 = -Misc-SIMSUN-Medium-R-NORMAL - * -% D - * - * - C - * - BIG5-0 Allfonts.lucida = -b & h-lucidasans-medium -Normal-Sans - * -% D - * - * - P - * - ISO8859-1 Serif.Plain.jaPanese-X0201 = -ricoh-mincho-medium-r-normal - * -% D - * - * -c - * - jisx0201.1976-0 serif.plain.japanese-x0208 = -ricoh-mincho-medium-r-normal - * -% D - * - * - c - * - jisx0208.1983-0 serif. .plain.latin-1 = -b & h-lucidabright-medium-r-normal - * -% D - * - * - p - * - ISO8859-1 Serif.Bold.jaPanese-x0201 = -ricoh-mincho-me DIUM-R-NORMAL - * -% D - * - * - C - * - JISX0201.1976-0 Serif.Bold.Japanese-x0208 = -ricoh-mincho-medium-r-normal - * -% D- * - * - C - * - JISX0208.1983-0 Serif.Bold.latin-1 = -b & h-lucidabright-demibold-r-normal - * -% D - * - * --P - * - ISO8859-1 Serif .italic.japanese-x0201 = -ricoh-mincho-medium-r-normal - * -% D - * - * - c - * - jisx0201.1976-0 serif.iApanese-x0208 = -ricoh-mincho- Medium-r-Normal - * -% D - * - * - C - * - JISX0208.1983-0 Serif.italic.latin-1 = -b & h-lucidabright-medium-i-normal - * -% D- * - * - p - * - ISO8859-1 serif.bolditalic.japenese-x0201 = -ricoh-mincho-medium-r-NORMAL - * -% D - * - * - C - * - JISX0201.1976-0 Serif .bolditalic.japenese-x0208 =
-naroh-mincho-medium-r-normal - * -% D - * - * - c - * - jisx0208.1983-0 serif.bolditalic.latin-1 = -b & h-lucidabright-demibold-i-normal - * -% D - * - * - p - * - ISO8859-1 Sansserif.Plain.japanese-x0201 = -ricoh-gothic-medium-r-normal - * -% D - * - * - c - * - jisx0201 .1976-0 Sansserif.Plain.japenese-x0208 = -ricoh-gothic-medium-r-normal - * -% D - * - * - c - * - jisx0208.1983-0 Sansserif.plain.latin-1 = -B & H-Lucidasans-Medium-r-NORMAL-SANS - * -% D - * - * - P - * - ISO8859-1 sansserif.bold.japenese-x0201 = -ricoh-gothic-medium-r-normal - * -% D - * - * - C - * - JISX0201.1976-0 Sansserif.Bold.japanese-x0208 = -ricoh-gothic-medium-r-normal - * -% D - * - * - C - * - JISX0208.1983-0 Sansserif.Bold.latin-1 = -b & h-lucidasans-bold-r-normal-sans - * -% d - * - * - p - * - ISO8859-1 sansserif.iAC.japenese-x0201 = -Ricoh-gothic-medium-r-NORMAL - * -% D - * - * - C - * - JISX0201.1976-0 Sansserif.iCoH-x0208 = -ricoh-gothic-medium-r-normal-- * -% D - * - * - C - * - JISX0208.1983-0 Sansserif.italic.latin-1 = -b & h-lucidasans-media-i-normal-sans - * -% D - * - * - P- * -iso8859-1 sansserif.bolditalic.japanese-x0201 = -ricoh-gothic-medium-r- Normal - * -% D - * - * - C - * - JISX0201.1976-0 Sansserif.Bolditalic.Japanese-x0208 = -ricoh-gothic-medium-r-normal - * -% D - * - * - C - * - JISX0208.1983-0 Sansserif.bolditalic.latin-1 = -b & h-lucidasans-bold-i-normal-sans - * -% d - * - * - p - * - ISO8859-1 monospaced.plain. Japanese-x0201 = -ricoh-mincho-medium-r-NORMAL - * -% D - * - * - C - * - JISX0201.1976-0 Monospaced.Plain.jaPanese-x0208 = -ricoh-mincho-medium-r -NORMAL - * -% D - * - * - C - * - JISX0208.1983-0 Monosp0208.1983-0 Monospaced.plain.latin-1 = -b & h-lucidatypewriter-medium-r-normal-sans - * -% d - * - * -M - * - ISO8859-1 monospaced.bold.japenese-x0201 = -ricoh-mincho-medium-r-normal - * -% D - * - * - c - * - jisx0201.1976-0 monospaced.bold .japanese-x0208 =
-Ricoh-mincho-medium-r-normal - * -% D - * - * - c - * - jisx0208.1983-0 monospaced.bold.latin-1 = -b & h-lucidatypewriter-bold-r-Normal-Sans - * -% D - * - * - m - * - ISO8859-1 monospaced.italic.japanese-x0201 = -ricoh-mincho-medium-r-normal - * -% D - * - * - c - * - JISX0201.1976-0 monospaced.italic.japenese-x0208 = -ricoh-mincho-medium-r-normal - * -% D - * - * - c - * - jisx0208.1983-0 monospaced.italic.latin-1 = -b & h-lucidatypewriter-medium-i-normal-sans - * -% d - * - * - m - * - ISO8859-1 monospaced.bolditalic.japanese-x0201 = -ricoh-mincho-medium-r-normal-- * -% D - * - * - C - * - JISX0201.1976-0 Monospaced.bolditalic.japanese-x0208 = -ricoh-mincho-medium-r-normal - * -% D - * - * - C- * -Jisx0208.1983-0 Monospaced.bolditalic.latin-1 = -b & h-lucidatypewriter-bold-i-normal-sans - * -% d - * - * - m- * - ISO8859-1 Dialog.Plain.jaPanese-x0201 = -ricoh-gothic-medium-r-NORMAL - * -% D - * - * - c - * - jisx0201.1976-0 Dialog.plain.japanese-x0208 = -ricoh-gothic-medium-r-normal- - * -% D - * - * - C - * - JISX0208.1983-0 Dialog.plain.latin-1 = -b & h-lucidasans-medium-r-normal-sans - * -% D - * - * - P - * - ISO8859-1 Dialog.Bold.Japanese-x0201 = -r ICOH-Gothic-Medium-R-Normal - * -% D - * - * - C - * - JISX0201.1976-0 Dialog.Bold.Japanese-x0208 = -ricoh-gothic-medium-r-Normal - * -% D - * - * - C - * - JISX0208.1983-0 Dialog.Bold.Latin-1 = -b & h-lucidasans-bold-r-NORMAL-SANS - * -% D - * - * - P- * -iso8859-1 dialog.italic.japenese-x0201 = -ricoh-gothic-medium-r-normal - * -% D - * - * - c - * - jisx0201.1976-0 Dialog.italic.japanese-x0208 = -Ricoh-gothic-medium-r-NORMAL - * -% D - * - * - C - * - JISX0208.1983-0 Dialog.italic.latin-1 = -b & h-lucidasans-medium-i-normal-sans - * -% D - * - * - p - * - ISO8859-1 Dialog.Bolditalic.japanese-x0201 = -ricoh-gothic-medium-r-normal - * -% D - * - * - C - * - JISX0201.1976-0 Dialog.Bolditalic.japanese-x0208 =
-Ricoh-gothic-medium-r-NORMAL - * -% D - * - * - C - * - JISX0208.1983-0 Dialog.bolditalic.latin-1 = -b & h-lucidasans-bold-i-Normal-Sans - * -% D - * - * - P - * - ISO8859-1 Dialoginput.Plain.japenese-x0201 = -ricoh-mincho-medium-r-normal - * -% D - * - * - C - * - JISX0201.1976-0 Dialoginput.Plain.japenese-x0208 = -ricoh-mincho-medium-r-NORMAL - * -% D - * - * - C - * - JISX0208.1983-0 Dialoginput.plain.latin-1 = -b & h-lucidatypewriter-medium-r-normal-sans - * -% d - * - * - m - * - ISO8859-1 Dialoginput.Bold.Japanese-x0201 = -ricoh-mincho-medium-r-normal-- * -% D - * - * - C - * - JISX0201.1976-0 Dialoginput.Bold.jaPanese-x0208 = -ricoh-mincho-medium-r-normal - * -% D - * - * - C- * -JISX0208.1983-0 Dialoginput.Bold.Latin-1 = -b & h-lucidatypewriter-bold-r-normal-sans - * -% d - * - * - m - * - ISO8859-1 Dialoginput.italic.japenese-x0201 = -ricoh-mincho-medium-r-NORMAL - * -% D - * - * - c - * - jisx0201.1976-0 Dialoginput.iCoNPASE-X0208 = -ricoh-mincho-medium-r-normal- - * -% D - * - * - C - * - JISX0208.1983-0 Dialoginput.italic.latin-1 = -b & h-lucidatypewriter-medium-i-normal-sans - * -% D - * - * - M - * - ISO8859-1 Dialoginput.bolditalic.j apanese-x0201 = -ricoh-mincho-medium-r-normal - * -% D - * - * - - c - * - jisx0201.1976-0 Dialoginput.bolditalic.japanese-x0208 = -ricoh-mincho-medium-r -NORMAL - * -% D - * - * - C - * - JISX0208.1983-0 Dialoginput.bolditalic.latin-1 = -b & h-lucidatypewriter-bold-i-normal-sans - * -% d - * - * -M - * - ISO8859-1 # search sequences sequence.allfonts = Chinese-gbk sequence.allfonts = latin-1 sequence.allfonts.big5 = latin-1, chinese-big5 sequence.allfonts.big5-hkscs = latin-1 , chinese-big5 sequence.allfonts.GB18030 = latin-1, chinese-gbk, chinese-iso10646 sequence.allfonts.GBK = latin-1, chinese-gbk sequence.allfonts.GB2312 = latin-1, chinese-gb2312 sequence.allfonts .x-euc-jp-linux =
Latin-1, Japanese-X0208, Japanese-X0201 SEQUENCE.ALLFONTS.UTF-8.JA.JP = Latin-1, Japanese-X0208, Japanese-X0201, Chinese-ISO10646 SEQUENCE.ALLFONTS.UTF-8.ZH = Latin- 1, chinese-iso10646, japanese-x0208, japanese-x0201 sequence.fallback = lucida, chinese-big5, chinese-iso10646, japanese-x0208 # Exclusion Ranges exclusion.japanese-x0201 = 0390-03d6,2200-22ef, 2701-27be Exclusion.japenese-x0208 = 0390-03d6, 2200-22ef, 2701-27be # font file names filename.-b & h-lucidasans-medium-r-normal-sans - * -% d - * - * - p - * - ISO8859 -1 = $ JRE_LIB_FONTS / LucidaSansRegular.ttf filename.-b & h-lucidabright-medium-r-normal - * -% d - * - * - p - * - iso8859-1 = $ JRE_LIB_FONTS / LucidaBrightRegular.ttf filename.-b & h -Lucidabright-Demibold-R-NORMAL - * -% D - * - * - P - * - ISO8859-1 = $ jre_lib_fonts / lucidabrightdeMibold.ttf filename.-b & h-lucidabright-medium-i-normal - * -% D - * - * - P - * - ISO8859-1 = $ jre_lib_fonts / lucidabrightital.ttf filename.-b & h-lucidabright-demibold-i-normal - * -% D - * - * - p - * - ISO8859-1 = $ JRE_LIB_FONTS / LUCIDABRIGHTDemiitalic.ttf FileName.-B & H-Lucidasans-Bold-R-Normal-SA NS - * -% D - * - * - - P - * - ISO8859-1 = $ jre_lib_fonts / lucidasansdemibold.ttf filename.-b & h-lucidasans-medium-i-normal-sans - * -% d - * - * - p - * - ISO8859-1 = $ JRE_LIB_FONTS / LUCIDASREGULAR.TTF FILENAME.-B & H-Lucidasans-bold-i-Normal-Sans - * -% D - * - * - P - * - ISO8859-1 = $ JRE_LIB_FONTS / LUCIDASASDEMIBOLD. TTF filename.-b & h-lucidatypewriter-medium-r-normal-sans - * -% d - * - * - m - * - ISO8859-1 = $ jre_lib_fonts / lucidatypewriterregular.ttf filename.-b & h-lucidatypewriter-bold-r- Normal-Sans - * -% D - * - * - M - * - ISO8859-1 = $ JRE_LIB_FONTS / LUCIDATYPEWRITERBOLD.TTTF FILENAME.-B & H-Lucidatypewriter-Medium-I-NORMAL-SANS - * -% D - * - * -m - * - ISO8859-1 = $ jre_lib_fonts / lucidatypewriterregular.ttf FileName.-B &