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: "Bold" effect when anti-aliased glyphs are overwritten Date: Wed, 28 May 2008 10:49:18 +0200 Message-ID: <87hcciyfsh.fsf@escher.local.home> References: <87ve0zmy8p.fsf@stupidchicken.com> <87mymb4fp2.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211964588 23732 80.91.229.12 (28 May 2008 08:49:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 May 2008 08:49:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 28 10:50:29 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 1K1HMV-000140-N8 for ged-emacs-devel@m.gmane.org; Wed, 28 May 2008 10:50:23 +0200 Original-Received: from localhost ([127.0.0.1]:35270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1HLk-00075Z-BH for ged-emacs-devel@m.gmane.org; Wed, 28 May 2008 04:49:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1HLd-000741-8w for emacs-devel@gnu.org; Wed, 28 May 2008 04:49:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1HLc-000735-70 for emacs-devel@gnu.org; Wed, 28 May 2008 04:49:28 -0400 Original-Received: from [199.232.76.173] (port=46272 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1HLb-00072w-Em for emacs-devel@gnu.org; Wed, 28 May 2008 04:49:27 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:42676 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 1K1HLb-0001lC-6K for emacs-devel@gnu.org; Wed, 28 May 2008 04:49:27 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K1HLZ-0008Ap-Rp for emacs-devel@gnu.org; Wed, 28 May 2008 08:49:25 +0000 Original-Received: from i5387d986.versanet.de ([83.135.217.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 May 2008 08:49:25 +0000 Original-Received: from Stephen.Berman by i5387d986.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 May 2008 08:49:25 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i5387d986.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:97880 Archived-At: On Tue, 27 May 2008 17:09:29 -0400 Chong Yidong wrote: > Chong Yidong writes: > >> I've been noticing that glyphs near the cursor occasionally become >> "bold" for no reason. >> >> The reason this happens is that when the redisplay engine calls >> draw_glyphs to draw certain glyphs, such as the cursor glyph, >> neighboring glyphs are redrawn if there is a left or right overhang >> (xdisp.c:19929). >> >> With anti-aliasing, it doesn't work well. Apparently, during the >> anti-aliasing calculation, the entire existing glyph---including the >> glyph foreground---is treated as the "background". Thus, the >> anti-aliased parts of the foreground character becomes more and more >> prominent, and eventually saturates completely. > > I've checked in a fix into CVS. Please let me know if it causes any > problems. It fixes the cases I have encountered. Thanks! Steve Berman