From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: despen@verizon.net Newsgroups: gmane.emacs.help Subject: Re: How can I improve Emacs' font selection algorithm? Date: Fri, 04 Mar 2011 11:56:47 -0500 Organization: A noiseless patient Spider Message-ID: References: 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 1299260437 31381 80.91.229.12 (4 Mar 2011 17:40:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Mar 2011 17:40:37 +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 18:40:32 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 1PvYzQ-0005rD-1A for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Mar 2011 18:40:32 +0100 Original-Received: from localhost ([127.0.0.1]:51772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvYzP-0005s5-Lr for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Mar 2011 12:40:31 -0500 Original-Path: usenet.stanford.edu!news-transit.tcx.org.uk!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Injection-Info: mx02.eternal-september.org; posting-host="jHG/q4CDuHQ12inYDCpZIQ"; logging-data="21655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JyX6GWBFlyVzGrXrX1yWnbFHTAFOua0I=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:pg1Ehm1LVxPmhRQ9uCyCXH9aK9g= sha1:EW8bmQqVnsekuT3n3v3iggggAlw= Original-Xref: usenet.stanford.edu gnu.emacs.help:185616 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:79770 Archived-At: Štěpán Němec writes: > 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. Maybe you should provide examples. I'm using 23.2.1 on Linux under X. I picked Options, Set Default Font, Picked Deja Vu Sans Mono/Bold/12 point and have a reasonably nice font. It's important to be specific when reporting problems.