Kuang Chen
2009-06-08 04:53:06 UTC
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
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