From owner-freebsd-questions@FreeBSD.ORG Fri Jan 30 12:45:05 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4A112D1 for ; Fri, 30 Jan 2015 12:45:05 +0000 (UTC) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E118365 for ; Fri, 30 Jan 2015 12:45:04 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id h11so2766246wiw.5 for ; Fri, 30 Jan 2015 04:44:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=LeCZeCkPb+9beQN4KrxfM8R8+LuJVDVycdWtIwdSq3I=; b=m4f3BQUWreIeDXqiqJ/A6MkyQdWRSTjNMem8sj7Y/ukrKJPV5kXRlhAYx7auxNO+e0 k9av5N8PblZ3RQt75cMg+ARQRqTILVfLBq63s6PwfUt20Mgwq3aP+04yAdWCGuu9MWji ooqs2vho1FLm6EBGftDiBQAlg6bY4M0isryDrk7rRfDn+5SQHTN7J9u6WVOw07j3ILZI JfYLwh5Qeg94V4OaTavAFtv6Wdd1BidBmoPQWWzpfj307m49dBHq8TSbU1FGOCUnEnr8 Giwffksya4Ngb8FrKEPrrt8eJaIpUIUjEQU7v7RCQgE/zTiI5BilCMVpRKWYExsHKbKb mhyQ== X-Gm-Message-State: ALoCoQlt4Hi33Bz4+mBPXB5mlWhGNrVKIsGvE2WOSKVzLX2sp7OjeDEEn/snrfe024Rp1uKCr76s MIME-Version: 1.0 X-Received: by 10.180.182.67 with SMTP id ec3mr4535167wic.58.1422621896870; Fri, 30 Jan 2015 04:44:56 -0800 (PST) Received: by 10.194.178.68 with HTTP; Fri, 30 Jan 2015 04:44:56 -0800 (PST) Received: by 10.194.178.68 with HTTP; Fri, 30 Jan 2015 04:44:56 -0800 (PST) In-Reply-To: <20150124164733.GA1669@workbox.Home> References: <20150124164733.GA1669@workbox.Home> Date: Fri, 30 Jan 2015 20:44:56 +0800 Message-ID: Subject: Re: How to use two kinds of fonts in x11-wm/dwm bar? From: alphachi To: Bigby James Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "list: freebsd" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2015 12:45:05 -0000 Thanks! I got it. 2015-1-25 =E4=B8=8A=E5=8D=8812:47=E4=BA=8E "Bigby James" =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 > >