emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.60; Deja vu font breaks mouse-face highlighting in Gnus


From: Johan Bockgård
Subject: Re: 23.0.60; Deja vu font breaks mouse-face highlighting in Gnus
Date: Sun, 17 Feb 2008 01:40:58 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

Stephen Berman <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]