From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#2334: 23.0.90; emacs-snapshot has ugly fonts when using set-default-font elisp function Date: Wed, 18 Feb 2009 15:00:39 +0900 Message-ID: References: <8763jaqu7b.fsf@cyd.mit.edu> Reply-To: Kenichi Handa , 2334@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234938235 13190 80.91.229.12 (18 Feb 2009 06:23:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2009 06:23:55 +0000 (UTC) Cc: tytso@mit.edu, 2334@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 07:25:11 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 1LZfrq-0005FY-2U for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2009 07:25:10 +0100 Original-Received: from localhost ([127.0.0.1]:36658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZfqV-0002mk-Nf for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2009 01:23:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZfqP-0002mb-Ah for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 01:23:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZfqO-0002mB-4Z for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 01:23:40 -0500 Original-Received: from [199.232.76.173] (port=45896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZfqN-0002m7-MA for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 01:23:39 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57330) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZfqN-0000Zb-87 for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 01:23:39 -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 n1I6NZoR031727; Tue, 17 Feb 2009 22:23:35 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1I65863026476; Tue, 17 Feb 2009 22:05:08 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 18 Feb 2009 06:05:08 +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.123493682924983 (code B ref 2334); Wed, 18 Feb 2009 06:05:08 +0000 Original-Received: (at 2334) by emacsbugs.donarmstrong.com; 18 Feb 2009 06:00:29 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1I60OSb024932 for <2334@emacsbugs.donarmstrong.com>; Tue, 17 Feb 2009 22:00:26 -0800 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n1I60NJU026523; Wed, 18 Feb 2009 15:00:23 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n1I60NaJ025995; Wed, 18 Feb 2009 15:00:23 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n1I60MDk002163; Wed, 18 Feb 2009 15:00:22 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LZfU7-0000PL-0A; Wed, 18 Feb 2009 15:00:39 +0900 In-reply-to: <8763jaqu7b.fsf@cyd.mit.edu> (message from Chong Yidong on Mon, 16 Feb 2009 10:26:16 -0500) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 18 Feb 2009 01:23:40 -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:25396 Archived-At: In article <8763jaqu7b.fsf@cyd.mit.edu>, Chong Yidong writes: > "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. I at first want to figure out why the above two methods for seting a font are different. At least, I can't reproduce the difference. Can you? When I have "dejavu sans mono" fonts both for fontconfig and X as below, both methods set the default font to X font. % fc-list 'dejavu sans mono' DejaVu Sans Mono:style=Bold Oblique DejaVu Sans Mono:style=Oblique DejaVu Sans Mono:style=Book DejaVu Sans Mono:style=Bold % xlsfonts '*-dejavu sans mono-*' -dejavu-dejavu sans mono-bold-o-normal--0-0-0-0-c-0-iso10646-1 -dejavu-dejavu sans mono-bold-o-normal--0-0-0-0-m-0-iso10646-1 -dejavu-dejavu sans mono-bold-r-normal--0-0-0-0-c-0-iso10646-1 -dejavu-dejavu sans mono-bold-r-normal--0-0-0-0-m-0-iso10646-1 -dejavu-dejavu sans mono-medium-o-normal--0-0-0-0-c-0-iso10646-1 -dejavu-dejavu sans mono-medium-o-normal--0-0-0-0-m-0-iso10646-1 -dejavu-dejavu sans mono-medium-r-normal--0-0-0-0-c-0-iso10646-1 -dejavu-dejavu sans mono-medium-r-normal--0-0-0-0-m-0-iso10646-1 [...] --- Kenichi Handa handa@m17n.org