Re: simplified chines and Java 1.5 in 10.1

Mike FABIAN <[email protected]>
Newsgroups gmane.linux.suse.m17n
Message-ID <[email protected]>
Stefan Müller <[email protected]> さんは書きました:

> I try to display simplified chinese characters with Java 1.5 under SuSE
> 10.1, but I only get boxes instead of the characters.
>
> I found the file
> /usr/lib/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/fontconfig.SuSE.properties
>
> which might be relevant. Can somebody explain to me how it works. From
> other mails on this list I got the impression that fonts-config should
> find everything automatically.
>
> The problem may be related to the statement:
>
> sequence.allfonts.UTF-8.zh=latin-1,chinese-iso10646,japanese-x0208,japanese-x0201

I don't think that is related because I have the same line and it
works for me.

I guess you don't have the Founder fonts installed.

Please install

http://ftp.opensuse.org/pub/opensuse/distribution/SL-10.1/non-oss-inst-source/suse/noarch/ttf-founder-simplified-0.20040419-7.noarch.rpm
http://ftp.opensuse.org/pub/opensuse/distribution/SL-10.1/non-oss-inst-source/suse/noarch/ttf-founder-traditional-0.20040419-7.noarch.rpm

and try again, then it should work.

The file 

/usr/lib/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/fontconfig.SuSE.properties

is auto-generated by /usr/sbin/fonts-config (called by "SuSEconfig
--fonts").

For Japanese, fonts-config checks which Japanese fonts are available
and edits fontconfig.SuSE.properties to use the "best" ones available.

For Chinese, fonts-config doesn't yet do that, it just writes entries
using the Founder fonts unconditionally. If the Founder fonts are not
installed, it doesn't work.

I should improve that to generate alternative Chinese font entries as
well if the Founder fonts are not installed but for example the Arphic
PL fonts are installed.


-- 
Mike FABIAN   <[email protected]>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.