From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Theodore Tso Newsgroups: gmane.emacs.bugs Subject: bug#2334: 23.0.90; emacs-snapshot has ugly fonts when using set-default-font elisp function Date: Mon, 16 Feb 2009 11:00:05 -0500 Message-ID: <20090216160005.GA11788@mini-me.lan> References: <8763jaqu7b.fsf@cyd.mit.edu> Reply-To: Theodore Tso , 2334@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234805924 27168 80.91.229.12 (16 Feb 2009 17:38:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Feb 2009 17:38:44 +0000 (UTC) Cc: 2334@emacsbugs.donarmstrong.com, Kenichi Handa To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 16 18:39:59 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LZ7Re-0000Uz-6l for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Feb 2009 18:39:50 +0100 Original-Received: from localhost ([127.0.0.1]:52311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZ7QK-0003og-4U for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Feb 2009 12:38:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZ7Bz-0003wj-RG for bug-gnu-emacs@gnu.org; Mon, 16 Feb 2009 12:23:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZ7By-0003va-0l for bug-gnu-emacs@gnu.org; Mon, 16 Feb 2009 12:23:39 -0500 Original-Received: from [199.232.76.173] (port=36460 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZ7Bx-0003vR-SW for bug-gnu-emacs@gnu.org; Mon, 16 Feb 2009 12:23:37 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45573) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZ7Bx-00077l-B3 for bug-gnu-emacs@gnu.org; Mon, 16 Feb 2009 12:23:37 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1GHNZNI029720; Mon, 16 Feb 2009 09:23:35 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1GH55xc025123; Mon, 16 Feb 2009 09:05:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Theodore Tso Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 16 Feb 2009 17:05:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2334 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2334-submit@emacsbugs.donarmstrong.com id=B2334.123480352023057 (code B ref 2334); Mon, 16 Feb 2009 17:05:04 +0000 Original-Received: (at 2334) by emacsbugs.donarmstrong.com; 16 Feb 2009 16:58:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from thunker.thunk.org (thunk.org [69.25.196.29]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1GGwbZ4023051 for <2334@emacsbugs.donarmstrong.com>; Mon, 16 Feb 2009 08:58:38 -0800 Original-Received: from tytso authenticated as tytso by thunker.thunk.org with local (Exim 4.50 #1 (Debian)) id 1LZ6nh-0004n4-B4; Mon, 16 Feb 2009 11:58:33 -0500 Content-Disposition: inline In-Reply-To: <8763jaqu7b.fsf@cyd.mit.edu> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 16 Feb 2009 12:23:39 -0500 X-Mailman-Approved-At: Mon, 16 Feb 2009 12:36:56 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25338 Archived-At: On Mon, Feb 16, 2009 at 10:26:16AM -0500, Chong Yidong wrote: > "Theodore Ts'o" wrote: > > > Using emacs-snapshot-20090207, the text display becomes very ugly when > > set via: > > (set-default-font "DejaVu Sans Mono-10") > > However, if the font is set via the menu bar: Options->Set Default Font > > then the fonts look good (i.e., with proper anti-aliasing). > > Hi Handa-san, > > I think we should give the xft font backend (where it is available) a > higher priority than the x backend; otherwise, users will keep > experiencing bugs like this. > > WDYT? Stupid question --- is there a way to force the right thing to happen from emacs-lisp? My biggest gripe is that I couldn't figure out a way to make the right thing happem from my .emacs.el file, despite a lot of time spent trying to find the right interfaces via M-x apropos. So at the moment, I'm firing up emacs, and then having to use Options->Set Default Font from the menu bar to change to a small font size. (And I'm an old-school emacs person who normally would run with the menu bar and tool bar disabled. :-) I suspect the correct default though should be to give the xft font backend a higher priority; especially at the moment, where many people are using emacs-snapshot *because* of the nicer font display. Thanks, regards, - Ted