From owner-freebsd-questions@FreeBSD.ORG Sat Jan 24 16:47:44 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D8D3951A for ; Sat, 24 Jan 2015 16:47:44 +0000 (UTC) Received: from sender1.zohomail.com (sender1.zohomail.com [74.201.84.155]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C2F8E3E6 for ; Sat, 24 Jan 2015 16:47:44 +0000 (UTC) Received: from workbox.Home (184-100-124-78.mpls.qwest.net [184.100.124.78]) by mx.zohomail.com with SMTPS id 1422118056279148.9206580872226; Sat, 24 Jan 2015 08:47:36 -0800 (PST) Date: Sat, 24 Jan 2015 10:47:33 -0600 From: Bigby James To: freebsd-questions@freebsd.org Subject: Re: How to use two kinds of fonts in x11-wm/dwm bar? Message-ID: <20150124164733.GA1669@workbox.Home> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-ZohoMailClient: External X-Zoho-Virus-Status: 2 Cc: alpachi 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: Sat, 24 Jan 2015 16:47:44 -0000 > 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