From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: Bad drawing of xft fonts overlapping box cursor Date: Mon, 18 Feb 2008 01:36:59 +0100 Message-ID: <87zltzdrro.fsf@escher.local.home> References: <87fxvzsdf3.fsf@escher.local.home> <87skzs1mlz.fsf@escher.local.home> <87d4qvpw7o.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1203295221 4602 80.91.229.12 (18 Feb 2008 00:40:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 00:40:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 18 01:40:45 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JQu3o-0006q3-0B for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2008 01:40:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQu3J-0004xJ-Tx for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2008 19:40:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQu3F-0004vL-RB for emacs-devel@gnu.org; Sun, 17 Feb 2008 19:40:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQu3E-0004ub-F5 for emacs-devel@gnu.org; Sun, 17 Feb 2008 19:40:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQu3E-0004uY-CK for emacs-devel@gnu.org; Sun, 17 Feb 2008 19:40:08 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JQu3D-0007th-KW for emacs-devel@gnu.org; Sun, 17 Feb 2008 19:40:07 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JQu39-000165-61 for emacs-devel@gnu.org; Mon, 18 Feb 2008 00:40:03 +0000 Original-Received: from i5387c90c.versanet.de ([83.135.201.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Feb 2008 00:40:03 +0000 Original-Received: from Stephen.Berman by i5387c90c.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Feb 2008 00:40:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387c90c.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89425 Archived-At: On Sun, 17 Feb 2008 21:47:13 +0100 bojohan+news@dd.chalmers.se (Johan Bockgård) wrote: > In some fonts certain characters can produce overlaps with the box > cursor. This leads to uglily drawn characters. > > emacs -Q -xrm \ > 'emacs*font: bitstream vera sans mono:pixelsize=17 > Xft.hintstyle: hintmedium' \ > -fg white -bg black -cr green > > (progn > (switch-to-buffer "*test*") > (insert "W\nW\nW") > (dotimes (_ 50) > (redisplay) > (goto-char 4) > (redisplay) > (goto-char 6))) > > It looks like what happens is that each time the cursor is placed next > to the problematic character another copy of the character is drawn. > For antialiased fonts this produces the effect that the half transparent > pixels become more and more solid. When I try this I do not see any difference in the "W"s. I also tried with 500 repetitions and I magnified the screen display, but all three characters look identical. This is on GNU Emacs 23.0.60.5 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of 2008-02-14 on escher running under openSUSE 10.3. Steve Berman