From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; Deja vu font breaks mouse-face highlighting in Gnus Date: Sun, 17 Feb 2008 01:40:58 +0100 Message-ID: References: <87fxvzsdf3.fsf@escher.local.home> <87skzs1mlz.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 1203208886 13277 80.91.229.12 (17 Feb 2008 00:41:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2008 00:41:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 17 01:41:49 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 1JQXbI-0003tm-6q for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2008 01:41:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQXao-00083C-8T for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 19:41:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQXaj-00081m-T3 for emacs-devel@gnu.org; Sat, 16 Feb 2008 19:41:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQXai-00081P-8z for emacs-devel@gnu.org; Sat, 16 Feb 2008 19:41:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQXai-00081M-4Y for emacs-devel@gnu.org; Sat, 16 Feb 2008 19:41:12 -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 1JQXah-0005cs-Cc for emacs-devel@gnu.org; Sat, 16 Feb 2008 19:41:11 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JQXaZ-0000Es-L1 for emacs-devel@gnu.org; Sun, 17 Feb 2008 00:41:03 +0000 Original-Received: from remote2.student.chalmers.se ([129.16.29.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Feb 2008 00:41:03 +0000 Original-Received: from bojohan+news by remote2.student.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Feb 2008 00:41:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: remote2.student.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:Dg8NcXOVsXtHqU4DJhxd0CA0u44= 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:89292 Archived-At: Stephen Berman writes: > Other Dejavu fonts also show the gap in highlighting, but the range of > susceptible strings seems to be less than with Dejavu Sans Mono. I > have tried using a number of other fonts but so far haven't found any > others that show the display problem. The problem happens for characters that stick out of their box. It is most noticeable with an italic font. E.g. try (font-lock-mode 0) (insert (propertize "XXXXXX" 'face 'italic 'mouse-face 'highlight)) The responsible code is this part in `draw_glyphs': /* If there are any glyphs with lbearing < 0 or rbearing > width in the row, redraw some glyphs in front or following the glyph strings built above. */ if (head && !overlaps && row->contains_overlapping_glyphs_p) { ... -- Johan Bockgård