Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 2015 20:44:56 +0800
From:      alphachi <alphachi@mediaspirit.org>
To:        Bigby James <bigby.james@dimthoughts.com>
Cc:        "list: freebsd" <freebsd-questions@freebsd.org>
Subject:   Re: How to use two kinds of fonts in x11-wm/dwm bar?
Message-ID:  <CAJN5%2BGsxf8eW%2BuqHFrn1QERFrmJEpoVfSKEskhX1RwE0UtZGnA@mail.gmail.com>
In-Reply-To: <20150124164733.GA1669@workbox.Home>
References:  <CAJN5%2BGvXFhRMM--U3KnehcdRWKTGXvo%2BYiKY-9YKX8-DJhwwoQ@mail.gmail.com> <20150124164733.GA1669@workbox.Home>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks! I got it.
2015-1-25 =E4=B8=8A=E5=8D=8812:47=E4=BA=8E "Bigby James" <bigby.james@dimth=
oughts.com>=E5=86=99=E9=81=93=EF=BC=9A

> > 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'l=
l
> 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
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJN5%2BGsxf8eW%2BuqHFrn1QERFrmJEpoVfSKEskhX1RwE0UtZGnA>