Discussion:
[Fluxbox-users] Chinese Font Problem
Kuang Chen
2009-06-08 04:53:06 UTC
Permalink
Hi,

Here is what I failed to do: mix Chinese and English font in
toolbar.iconbar.focused, namely say ,use "Bitstream Vera Sans Mono" for
English characters and "WenQuanYi Zen Hei Mono" for Chinese characters. I've
made my /etc/fonts/local.conf into this:

<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>WenQuanYi Zen Hei Mono</family>
</prefer>
</alias>

and my ~/.fluxbox/overlay includes the following lines:

toolbar.iconbar.focused.font: monospace-9:Italic
toolbar.iconbar.unfocused.font: monospace-9:book

But now it turns out that fluxbox chooses Bitstream Vera Sans Mono to
display the whole title regardless of whether there is any Chinese
characters, leaving only boxes where the Chinese characters should be. It's
not that fluxbox cannot handle Chinese fonts. If I specify WenQuanYi Zen Hei
Mono in ~/.fluxbox/overlay as the font for the iconbar, Chinese characters
are displayed properly. So I am wondering if I have done anything wrong, or
if there is a hidden switch somewhere I overlooked somehow?

Thanks,
Kuang
Zhang Weiwu
2009-06-15 06:01:26 UTC
Permalink
Post by Kuang Chen
Hi,
Here is what I failed to do: mix Chinese and English font in
toolbar.iconbar.focused, namely say ,use "Bitstream Vera Sans Mono"
for English characters and "WenQuanYi Zen Hei Mono" for Chinese
I am not sure if fluxbox supports fontconfig which is configured by
/etc/fonts. Which is not necessarily fluxbox's problem, because
window-manager was not supposed to be heavily depending on other libraries.

I also have other problem in displaying Chinese, e.g. bitmap Chinese
fonts could not be correctly displayed. I think it is a bug in fluxbox
(and I filed it). The years' experience is a lot of software not based
on recently developed widget (e.g. gtk) has hidden bugs about Chinese.
e.g. gnustep (with its own widgets) couldn't display Chinese at all and
a lot motif application suffer from Chinese display problem too.

Loading...