From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.help Subject: How can I improve Emacs' font selection algorithm? Date: Fri, 04 Mar 2011 10:37:26 +0100 Message-ID: <87pqq7ns4p.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1299231978 22684 80.91.229.12 (4 Mar 2011 09:46:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Mar 2011 09:46:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 04 10:46:11 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PvRaL-0003UV-QH for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Mar 2011 10:46:09 +0100 Original-Received: from localhost ([127.0.0.1]:56948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvRaL-0004Fh-5g for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Mar 2011 04:46:09 -0500 Original-Received: from [140.186.70.92] (port=37430 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvRZQ-0004B7-9o for help-gnu-emacs@gnu.org; Fri, 04 Mar 2011 04:45:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvRZN-0007Gr-V2 for help-gnu-emacs@gnu.org; Fri, 04 Mar 2011 04:45:10 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:34835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvRZN-0007GE-PA for help-gnu-emacs@gnu.org; Fri, 04 Mar 2011 04:45:09 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PvRZK-0002zN-La for help-gnu-emacs@gnu.org; Fri, 04 Mar 2011 10:45:06 +0100 Original-Received: from 176.119.broadband10.iol.cz ([90.177.119.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Mar 2011 10:45:06 +0100 Original-Received: from stepnem by 176.119.broadband10.iol.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Mar 2011 10:45:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 176.119.broadband10.iol.cz User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:5E7utxoI1XhuG78QZ8XRJfl+sAU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79766 Archived-At: I know I can use `set-fontset-font' to hardcode fonts used for specific character ranges, but that's often inconvenient. Emacs obviously sometimes does a rather poor job of font selection (speaking about GUI Emacs under X in case it matters), e.g. when selecting a fallback font for characters missing from the default/specified font, it selects some ridiculously ugly (and very differently-looking) font, even though there is a much better font available for those characters; sometimes it even doesn't find a font at all and displays just the encoding rectangles, even though there _is_ actually an appropriate font available (which I can e.g. set manually). That's probably a bug. Can something be done about that? I haven't been able to find anything in the documentation. I imagine there could at least be something like a `fallback-font-selection-order' listing the desirable fonts that could be consulted during font selection as a crude workaround for the problem. Štěpán