SuSE and Java1.5 asian fonts question.
Hello , I have a question for the java1.5 sdk/jre font configuration under SuSE Linux. Currently I'm using SuSE 9.2 Pro, it has configured with JRE142. it looks like configured with sazanami font automatically by font.properties.ja file. Once after installed JDK1.5 and configured /etc/java/java.conf to setup JDK1.5 runtime, I found that fontconfig file has only having Latin-1 font settings. In order to use Japanese font as same as JRE142, I made the fontconfig.SuSE.properties file as attached. After that, JDK1.5 works fine, ant show me Japanese font glyph. Above things are coming up with my questions. 1. Which version of SuSE/SLES are supporting Java1.5 for Asian locale ? 'officially' means don not edit font config file manually. 2. Is there right (or wise) way to configure Java related font ? Hope a utility tool (ie, SuSEconfig command) queries XLFD database and get correct font name to be configured in the target system. thank you, -naoya sugioka
"Naoya Sugioka" <Naoya.Sugioka@veritas.com> さんは書きました:
I have a question for the java1.5 sdk/jre font configuration under SuSE Linux. Currently I'm using SuSE 9.2 Pro, it has configured with JRE142. it looks like configured with sazanami font automatically by font.properties.ja file. Once after installed JDK1.5 and configured /etc/java/java.conf to setup JDK1.5 runtime, I found that fontconfig file has only having Latin-1 font settings. In order to use Japanese font as same as JRE142, I made the fontconfig.SuSE.properties file as attached. After that, JDK1.5 works fine, ant show me Japanese font glyph. Above things are coming up with my questions. 1. Which version of SuSE/SLES are supporting Java1.5 for Asian locale ? 'officially' means don not edit font config file manually.
It is fixed in SuSE Linux 9.3 (I attach fontconfig.SuSE.properties from SuSE Linux 9.3 for you to check).
2. Is there right (or wise) way to configure Java related font ? Hope a utility tool (ie, SuSEconfig command) queries XLFD database and get correct font name to be configured in the target system.
Not yet, but I will do that for the next version of SuSE Linux. I cannot use xlsfonts for that purpose because there may be no X-Display accessible when SuSEconfig is running. I will probably use "fc-match" to find out the "best" fonts for Japanese, then get the filenames with "fc-list family-name file" and retrieve the XLFD from the fonts.dir in the directory where the font file is. -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
Mike FABIAN <mfabian@suse.de> さんは書きました:
(I attach fontconfig.SuSE.properties from SuSE Linux 9.3 for you to check).
My attachment was discarded by the mailing list software, probably because I forgot to set the MIME type text/plain, binary attachments are not allowed on the list. Sorry. I try again to attach it to this mail. # @(#)linux.fontconfig.Turbo.8.0.properties 1.1 04/04/01 # # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # # Version version=1 # Component Font Mappings allfonts.chinese-gb18030=-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-gb18030-0 allfonts.chinese-gbk=-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-gbk-0 allfonts.chinese-gb2312=-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-gb2312.1980-0 allfonts.chinese-big5=-founder-MingTiB-medium-r-normal--*-%d-*-*-*-*-big5-0 allfonts.chinese-iso10646=-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-iso10646-1 allfonts.lucida=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1 allfonts.japanese-x0201=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0 serif.plain.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 serif.plain.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 serif.plain.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 serif.plain.korean.motif=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 serif.plain.latin-1=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1 serif.bold.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 serif.bold.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 serif.bold.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 serif.bold.korean.motif=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 serif.bold.latin-1=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1 serif.italic.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 serif.italic.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 serif.italic.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 serif.italic.korean.motif=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 serif.italic.latin-1=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1 serif.bolditalic.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 serif.bolditalic.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 serif.bolditalic.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 serif.bolditalic.korean.motif=-baeckmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 serif.bolditalic.latin-1=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1 sansserif.plain.japanese-x0208=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 sansserif.plain.japanese-iso10646=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1 sansserif.plain.korean=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1 sansserif.plain.korean.motif=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 sansserif.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1 sansserif.bold.japanese-x0208=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 sansserif.bold.japanese-iso10646=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1 sansserif.bold.korean=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1 sansserif.bold.korean.motif=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 sansserif.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1 sansserif.italic.japanese-x0208=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 sansserif.italic.japanese-iso10646=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1 sansserif.italic.korean=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1 sansserif.italic.korean.motif=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 sansserif.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1 sansserif.bolditalic.japanese-x0208=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 sansserif.bolditalic.japanese-iso10646=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1 sansserif.bolditalic.korean=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1 sansserif.bolditalic.korean.motif=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 sansserif.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1 monospaced.plain.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 monospaced.plain.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 monospaced.plain.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 monospaced.plain.korean.motif=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 monospaced.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1 monospaced.bold.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 monospaced.bold.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 monospaced.bold.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 monospaced.bold.korean.motif=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 monospaced.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1 monospaced.italic.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 monospaced.italic.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 monospaced.italic.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 monospaced.italic.korean.motif=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 monospaced.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1 monospaced.bolditalic.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 monospaced.bolditalic.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 monospaced.bolditalic.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 monospaced.bolditalic.korean.motif=-bekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 monospaced.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1 dialog.plain.japanese-x0208=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialog.plain.japanese-iso10646=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialog.plain.korean=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialog.plain.korean.motif=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 dialog.plain.latin-1=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1 dialog.bold.japanese-x0208=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialog.bold.japanese-iso10646=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialog.bold.korean=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialog.bold.korean.motif=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 dialog.bold.latin-1=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1 dialog.italic.japanese-x0208=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialog.italic.japanese-iso10646=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialog.italic.korean=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialog.italic.korean.motif=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 dialog.italic.latin-1=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1 dialog.bolditalic.japanese-x0208=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialog.bolditalic.japanese-iso10646=-misc-sazanami gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialog.bolditalic.korean=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialog.bolditalic.korean.motif=-baekmukttf-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 dialog.bolditalic.latin-1=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1 dialoginput.plain.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialoginput.plain.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialoginput.plain.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialoginput.plain.korean.motif=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 dialoginput.plain.latin-1=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.bold.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialoginput.bold.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialoginput.bold.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialoginput.bold.korean.motif=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 dialoginput.bold.latin-1=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.italic.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialoginput.italic.japanese-so10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialoginput.italic.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialoginput.italic.korean.motif=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 dialoginput.italic.latin-1=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1 dialoginput.bolditalic.japanese-x0208=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0 dialoginput.bolditalic.japanese-iso10646=-misc-sazanami mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialoginput.bolditalic.korean=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1 dialoginput.bolditalic.korean.motif=-baekmukttf-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0 dialoginput.bolditalic.latin-1=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1 # Search Sequences 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.allfonts.EUC-KR=latin-1,korean sequence.fallback=lucida,chinese-big5,japanese-x0208,japanese-x0201,korean # Exclusion Ranges exclusion.japanese-x0201=0390-03d6,2200-22ef,2701-27be exclusion.japanese-x0208=0390-03d6,2200-22ef,2701-27be # Font File Names filename.-misc-sazanami_gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=/usr/X11R6/lib/X11/fonts/truetype/sazanami-gothic.ttf filename.-misc-sazanami_mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=/usr/X11R6/lib/X11/fonts/truetype/sazanami-mincho.ttf filename.-misc-sazanami_gothic-medium-r-normal--*-%d-*-*-c-*-jisx0201.1976-0=/usr/X11R6/lib/X11/fonts/truetype/sazanami-gothic.ttf filename.-misc-sazanami_mincho-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/X11R6/lib/X11/fonts/truetype/sazanami-mincho.ttf filename.-misc-sazanami_gothic-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/X11R6/lib/X11/fonts/truetype/sazanami-gothic.ttf filename.-baekmukttf-batang-medium-r-normal--*-%d-*-*-*-*-ksc5601.1987-0=/usr/X11R6/lib/X11/fonts/truetype/batang.ttf filename.-baekmukttf-batang-medium-r-normal--*-%d-*-*-*-*-iso10646-1=/usr/X11R6/lib/X11/fonts/truetype/batang.ttf filename.-baekmukttf-gulim-medium-r-normal--*-%d-*-*-*-*-ksc5601.1987-0=/usr/X11R6/lib/X11/fonts/truetype/gulim.ttf filename.-baekmukttf-gulim-medium-r-normal--*-%d-*-*-*-*-iso10646-1=/usr/X11R6/lib/X11/fonts/truetype/gulim.ttf filename.-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-iso10646-1=/usr/X11R6/lib/X11/fonts/truetype/FZSongTi.ttf filename.-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-gb18030-0=/usr/X11R6/lib/X11/fonts/truetype/FZSongTi.ttf filename.-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-gbk-0=/usr/X11R6/lib/X11/fonts/truetype/FZSongTi.ttf filename.-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-gb2312.1980-0=/usr/X11R6/lib/X11/fonts/truetype/FZSongTi.ttf filename.-founder-SongTi-medium-r-normal--*-%d-*-*-*-*-iso10646-1=/usr/X11R6/lib/X11/fonts/truetype/FZSongTi.ttf # AWT X11 font paths #awtfontpath.chinese-big5=/usr/X11R6/lib/X11/fonts/ttf-zh #awtfontpath.chinese-gb2312=/usr/X11R6/lib/X11/fonts/ttf-zh #awtfontpath.chinese-gbk=/usr/X11R6/lib/X11/fonts/ttf-zh #awtfontpath.chinese-iso10646=/usr/X11R6/lib/X11/fonts/ttf-zh awtfontpath.japanese-x0201=/usr/X11R6/lib/X11/fonts/truetype awtfontpath.japanese-x0208=/usr/X11R6/lib/X11/fonts/truetype awtfontpath.japanese-iso10646-1=/usr/X11R6/lib/X11/fonts/truetype awtfontpath.korean=/usr/X11R6/lib/X11/fonts/truetype -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
participants (2)
-
Mike FABIAN
-
Naoya Sugioka