How to use two kinds of fonts in x11-wm/dwm bar?

alphachi alphachi at mediaspirit.org
Fri Jan 30 12:45:05 UTC 2015


Thanks! I got it.
2015-1-25 上午12:47于 "Bigby James" <bigby.james at dimthoughts.com>写道:

> > After this, I set the default font to monospace in Firefox and test -
> it's
> > ok. When I reinstall dwm, the default font of dwm changes to Terminus,
> but
> > all chars that should use Noto, like CJK chars, can't display correctly -
> > they display as many solid blocks.
>
> The short answer is that you can only have one font in the dwm statusline.
> There's a patch that allows you to use multiple TTF fonts, which a) you'll
> have
> to apply yourself using patch(1); and b) is incompatible with the XFT
> patch.[1]
> It also heavily modifies the dwm source code, so any other patches you
> wish to
> apply afterward will almost certainly have to be applied manually (using a
> text
> editor to paste in the diff).
>
> If you're seeing Terminus in the statusline after reinstalling dwm, then
> you
> likely overwrote your modified source with the default source during
> reinstallation. That's the only explanation I can see for your font
> changing
> to the default without you modifying the config file.
>
> [1]: http://dwm.suckless.org/patches/pango
>
> --
> "A common mistake that people make when trying to design something
> completely
> foolproof is to underestimate the ingenuity of complete fools." - Douglas
> Adams
>
>


More information about the freebsd-questions mailing list