From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#2334: marked as done (23.0.90; emacs-snapshot has ugly fonts when using set-default-font elisp function) Date: Thu, 19 Feb 2009 03:25:04 +0000 Message-ID: References: <878wo3qfm4.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1235013904-1738-0" X-Trace: ger.gmane.org 1235015063 6159 80.91.229.12 (19 Feb 2009 03:44:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2009 03:44:23 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 19 04:45:38 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 1LZzqs-00039g-Hd for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Feb 2009 04:45:31 +0100 Original-Received: from localhost ([127.0.0.1]:46866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZzpY-00070a-EX for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2009 22:44:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZzp8-0006i0-BP for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 22:43:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZzp6-0006gy-Eo for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 22:43:41 -0500 Original-Received: from [199.232.76.173] (port=51812 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZzp6-0006gh-3y for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 22:43:40 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34169) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZzp5-00074R-98 for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2009 22:43: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 n1J3hZXp007212; Wed, 18 Feb 2009 19:43:36 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1J3P4bC001851; Wed, 18 Feb 2009 19:25:04 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 2334 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:25444 Archived-At: This is a multi-part message in MIME format... ------------=_1235013904-1738-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Wed, 18 Feb 2009 22:18:11 -0500 with message-id <878wo3qfm4.fsf@cyd.mit.edu> and subject line Re: 23.0.90; emacs-snapshot has ugly fonts when using set-= default-font elisp function has caused the Emacs bug report #2334, regarding 23.0.90; emacs-snapshot has ugly fonts when using set-default-fon= t elisp function to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 2334: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D2334 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1235013904-1738-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 15 Feb 2009 05:32:38 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1F5WYYn009184 for ; Sat, 14 Feb 2009 21:32:36 -0800 Received: from mx10.gnu.org ([199.232.76.166]:39973) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LYZaK-00081q-1M for emacs-pretest-bug@gnu.org; Sun, 15 Feb 2009 00:30:32 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LYZcD-0002HS-T4 for emacs-pretest-bug@gnu.org; Sun, 15 Feb 2009 00:32:33 -0500 Received: from thunk.org ([69.25.196.29]:58370 helo=thunker.thunk.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LYZcD-0002HO-Il for emacs-pretest-bug@gnu.org; Sun, 15 Feb 2009 00:32:29 -0500 Received: from tytso authenticated as tytso by thunker.thunk.org with local (Exim 4.50 #1 (Debian)) id 1LYZcC-00046g-0S; Sun, 15 Feb 2009 00:32:28 -0500 To: emacs-pretest-bug@gnu.org Subject: 23.0.90; emacs-snapshot has ugly fonts when using set-default-font elisp function From: "Theodore Ts'o" Phone: (781) 391-3464 Message-Id: Date: Sun, 15 Feb 2009 00:32:28 -0500 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, seldom 2.4 (older, 4) 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). In GNU Emacs 23.0.90.1 (i486-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-02-10 on iridium, modified by Debian (emacs-snapshot package, version 1:20090207-1~intrepid1) Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.90/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.90/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x s e t - f SPC a SPC s SPC C-g M-x r e p o SPC SPC r SPC SPC SPC C-g C-x C-f C-g M-x r e p o r SPC SPC SPC Recent messages: Skipping dictionaries-common setup for emacs-snapshot Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /home/tytso/.emacs.custom...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Quit [2 times] call-interactively: End of buffer Making completion list... [2 times] Quit Quit ------------=_1235013904-1738-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2334-done) by emacsbugs.donarmstrong.com; 19 Feb 2009 03:17:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1J3HH9k032723 for <2334-done@emacsbugs.donarmstrong.com>; Wed, 18 Feb 2009 19:17:18 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 2C93957E1D7; Wed, 18 Feb 2009 22:18:11 -0500 (EST) From: Chong Yidong To: Kenichi Handa Cc: tytso@mit.edu, 2334-done@emacsbugs.donarmstrong.com Subject: Re: 23.0.90; emacs-snapshot has ugly fonts when using set-default-font elisp function References: <8763jaqu7b.fsf@cyd.mit.edu> Date: Wed, 18 Feb 2009 22:18:11 -0500 In-Reply-To: (Kenichi Handa's message of "Wed, 18 Feb 2009 15:00:39 +0900") Message-ID: <878wo3qfm4.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Kenichi Handa writes: > 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. If the frame is already using an XFT font, doing (set-face-attribute 'default (selected-frame) :font "DejaVu Sans Mono 10") will give an XFT (anti-aliased) version of DejaVu Sans Mono. If the frame is using an X font, the same code gives the X version of DejaVu Sans Mono. Doing (modify-frame-parameters (selected-frame) (list (cons 'font "DejaVu Sans Mono 10"))) always returns the X version. This discrepancy is due to the use of font_open_by_name instead of font_load_for_lface. I don't think there is anything that need to be corrected, apart from giving the XFT driver a higher priority; I've just done that. ------------=_1235013904-1738-0--