From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bo Lin Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Date: Mon, 12 Jan 2009 18:10:07 +0800 Message-ID: <87ljtgzvgg.fsf@unicorn.lan> Reply-To: Bo Lin , 1867@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 1231757567 4966 80.91.229.12 (12 Jan 2009 10:52:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2009 10:52:47 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 12 11:53:58 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 1LMKQf-0004WN-Vf for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jan 2009 11:53:58 +0100 Original-Received: from localhost ([127.0.0.1]:42648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMKPP-0007S6-F4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jan 2009 05:52:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMJxF-0001fe-Mt for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 05:23:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMJxB-0001cb-V0 for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 05:23:32 -0500 Original-Received: from [199.232.76.173] (port=48500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMJxB-0001cC-Hb for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 05:23:29 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60049) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LMJx9-0000mW-TB for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 05:23:29 -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 n0CANPYb009512; Mon, 12 Jan 2009 02:23:26 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0CAK47U008452; Mon, 12 Jan 2009 02:20:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Bo Lin Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 12 Jan 2009 10:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1867 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12317550247050 (code B ref -1); Mon, 12 Jan 2009 10:20:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 12 Jan 2009 10:10:24 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 n0CAAKgw007041 for ; Mon, 12 Jan 2009 02:10:21 -0800 Original-Received: from mail.gnu.org ([199.232.76.166]:54780 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LMJjC-0000qx-3J for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 05:09:02 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LMJkP-0006HB-It for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 05:10:19 -0500 Original-Received: from wf-out-1314.google.com ([209.85.200.173]:56202) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LMJkP-0006Gd-26 for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 05:10:17 -0500 Original-Received: by wf-out-1314.google.com with SMTP id 28so12383639wfc.24 for ; Mon, 12 Jan 2009 02:10:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:to:subject:from:date :message-id:user-agent:mime-version:content-type; bh=5PZZ2VyDkLcxWdhgcArnDSPxbxFjRUhUemFKzjRtero=; b=hNB9eVdO6Fcr8rBhqaWBIPIHKXykNmGiUkwSzgZtqMEg3HRnzT7Prs7yUjYp2HUgu6 NfAX7ho/V4cYMS0siBPYZ6yyS4Z+h52Sb0N3SjLoOClwv+IxM15GKMDa65stMzez5oHS k/60AjuQA2eUvwnBhv59HQHcB/sHh4nb84zqU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:from:date:message-id:user-agent:mime-version :content-type; b=Q0FIuf7QbrFJeQhaYAUBhmRbtA+3TEpelPvGNrOICPKuctGlMlRqBiNpLkg+/ExqBP ci5/+KydVfjJUK4oj4z71WslhYUa8dPUK18VGPH1W/1yNinXDgE1zenwtsclXQ3P6SHh VEZMdwSPUwiruGJdgqwT44NTB37fRuCVCm3Ig= Original-Received: by 10.142.245.6 with SMTP id s6mr12041850wfh.302.1231755013772; Mon, 12 Jan 2009 02:10:13 -0800 (PST) Original-Received: from unicorn ([210.73.1.55]) by mx.google.com with ESMTPS id 30sm25603234wfc.55.2009.01.12.02.10.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Jan 2009 02:10:13 -0800 (PST) Original-Received: from localhost.lan ([127.0.0.1] helo=unicorn.lan) by unicorn with esmtp (Exim 4.69) (envelope-from ) id 1LMJkF-0001vi-Sq for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 18:10:07 +0800 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 12 Jan 2009 05:23:32 -0500 X-Mailman-Approved-At: Mon, 12 Jan 2009 05:52:33 -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:24019 gmane.emacs.pretest.bugs:23676 Archived-At: 1. Choose a font FONTNAME which supports antialiasing. Confirm antialiasing is turned on for FONTNAME in fontconfig: $ fc-match -v FONTNAME |grep antialias antialias: FcTrue(w) 2. emacs -q 3. M-: (set-face-attribute 'default nil :font "FONTNAME") 4. C-x 3 C-x 2 Now there are three windows. We'll name the upper-left window 1, lower-left window 2, and the right window 3. 5. C-x b *scratch* RET C-x o C-x b *Messages* RET C-x o C-h i 6. Using mouse, quickly drag mode-line of window 1 up and down. Observe how text in window 1 and 3 flicker as windows 1 and 2 are resized. The main point is that window 3, though totally unaffected by the resizing of windows 1 and 2 and showing a different buffer, is still been constantly redrawn. This quite annoying, as even when the mini-buffer window resizes, which happens quite frequently, will cause the whole frame to flicker. This flickering does *not* occur if using old X core fonts. To confirm, start with `emacs -q -fn fixed' and repeat steps 4-6. This flickering does *not* occur if using same XFT font but antialiasing turned off. To confirm, turn antialiasing off for FONTNAME in fontconfig, for example by putting the following in ~/.fonts.conf false and again confirm by $ fc-match -v FONTNAME |grep antialias antialias: FcFalse(w) then repeat steps 2-6. This flickering does not occur in other XFT applications, such as gedit, using same font with antialias enabled. Flickering also does not occur in Emacs on Windows when using antialiased (cleartype) fonts. In GNU Emacs 23.0.60.7 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-01-12 on unicorn Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--prefix=/home/sadboy/apps/emacs/test' 'CFLAGS=-g'' 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: @im=SCIM locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: 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 blink-cursor-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x 3 C-x 2 C-u C-x = C-v C-l C-p C-n C-e C-a C-e C-a C-x 0 C-x b * M e s s C-x o C-x 2 M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Type "q" to restore this window, C-v to scroll help. Char: E (69, #o105, #x45) point=77 of 798 (10%) column=0