GNU bug report logs -
#20510
25.0.50; Underscore hidden by underline
Previous Next
Reported by: Fabrice Niessen <fni-news <at> pirilampo.org>
Date: Tue, 5 May 2015 20:14:02 UTC
Severity: minor
Tags: wontfix
Found in version 25.0.50
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20510 in the body.
You can then email your comments to 20510 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20510
; Package
emacs
.
(Tue, 05 May 2015 20:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Fabrice Niessen <fni-news <at> pirilampo.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 05 May 2015 20:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When `hl-line' is enabled with the `underline' attribute, and when the
font is "DejaVu Sans Mono" in 8 pt, then underscores get overridden by
the underline (of the current, highlighted, line).
Minimal config to reproduce the problem:
--8<---------------cut here---------------start------------->8---
(modify-all-frames-parameters '((font . "DejaVu Sans Mono-8")))
(global-hl-line-mode 1)
(set-face-attribute 'hl-line nil
:underline "#FFFF19" :background "#F6FECD")
--8<---------------cut here---------------end--------------->8---
Screenshot: http://screencast.com/t/UXoET9RHs0E.
Is this normal (while this does not occur with 9 or 10 pt faces)?
If yes, is there a way to get the hl-line's underline in the background?
Best regards,
Fabrice
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20510
; Package
emacs
.
(Wed, 06 May 2015 17:15:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 20510 <at> debbugs.gnu.org (full text, mbox):
> From: Fabrice Niessen <fni-news <at> pirilampo.org>
> Date: Tue, 05 May 2015 22:13:14 +0200
>
> When `hl-line' is enabled with the `underline' attribute, and when the
> font is "DejaVu Sans Mono" in 8 pt, then underscores get overridden by
> the underline (of the current, highlighted, line).
Well, the underline _must_ overwrite _some_ part of the character.
> Screenshot: http://screencast.com/t/UXoET9RHs0E.
>
> Is this normal
Yes, this is how the code was written to work.
> (while this does not occur with 9 or 10 pt faces)?
It depends on the font, yes.
You can try tweaking the value of x-use-underline-position-properties
and/or of x-underline-at-descent-line, they might fix your problem
with this font.
> If yes, is there a way to get the hl-line's underline in the background?
Not sure what you mean by that.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20510
; Package
emacs
.
(Wed, 06 May 2015 19:01:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 20510 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii wrote:
> Well, the underline _must_ overwrite _some_ part of the character.
>
>> If yes, is there a way to get the hl-line's underline in the background?
>
> Not sure what you mean by that.
I mean: can't the hl-line-mode code be written in a way that the
underline goes in the background of the character, that is that every
pixel of every character gets written "over" the underline line?
Best regards,
Fabrice
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20510
; Package
emacs
.
(Wed, 06 May 2015 19:23:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 20510 <at> debbugs.gnu.org (full text, mbox):
> From: Fabrice Niessen <fni-news <at> pirilampo.org>
> Cc: 20510 <at> debbugs.gnu.org
> Date: Wed, 06 May 2015 21:00:16 +0200
>
> I mean: can't the hl-line-mode code be written in a way that the
> underline goes in the background of the character, that is that every
> pixel of every character gets written "over" the underline line?
hl-line-mode cannot control that, and nothing on the Lisp level can.
When hl-line-mode puts its overlay on a line, the characters of that
line have the hl-line face merged with their face, with the result
that each character of that line will have the underline face in the
color you specify. That's all Lisp can do; then along comes the
display engine and redraws the characters in this new merged face.
The C code which draws characters is written so that we first draw the
background, then the characters, then the underline.
So what you are actually asking is that the order of drawing the
underline (and also overline, strike-through, etc.) is changed so that
these attributes are drawn _before_ the characters. That should be
possible by changing the order in the C code, but I have no idea what
that will do in other situations. It's probably not TRT at least when
we draw images and other similar stuff instead of characters.
Perhaps someone who knows more than I do about GUI display back-end
could tell if this is a safe change.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20510
; Package
emacs
.
(Mon, 30 Sep 2019 00:11:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 20510 <at> debbugs.gnu.org (full text, mbox):
tags 20510 + wontfix
close 20510
thanks
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Fabrice Niessen <fni-news <at> pirilampo.org>
>> Cc: 20510 <at> debbugs.gnu.org
>> Date: Wed, 06 May 2015 21:00:16 +0200
>>
>> I mean: can't the hl-line-mode code be written in a way that the
>> underline goes in the background of the character, that is that every
>> pixel of every character gets written "over" the underline line?
>
> hl-line-mode cannot control that, and nothing on the Lisp level can.
>
> When hl-line-mode puts its overlay on a line, the characters of that
> line have the hl-line face merged with their face, with the result
> that each character of that line will have the underline face in the
> color you specify. That's all Lisp can do; then along comes the
> display engine and redraws the characters in this new merged face.
> The C code which draws characters is written so that we first draw the
> background, then the characters, then the underline.
>
> So what you are actually asking is that the order of drawing the
> underline (and also overline, strike-through, etc.) is changed so that
> these attributes are drawn _before_ the characters. That should be
> possible by changing the order in the C code, but I have no idea what
> that will do in other situations. It's probably not TRT at least when
> we draw images and other similar stuff instead of characters.
>
> Perhaps someone who knows more than I do about GUI display back-end
> could tell if this is a safe change.
It sounds to me like this is not something we are interested in doing.
I'm closing this as wontfix.
Please reopen if I'm mistaken.
Best regards,
Stefan Kangas
Added tag(s) wontfix.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Mon, 30 Sep 2019 00:11:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
20510 <at> debbugs.gnu.org and Fabrice Niessen <fni-news <at> pirilampo.org>
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Mon, 30 Sep 2019 00:11:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20510
; Package
emacs
.
(Mon, 30 Sep 2019 06:41:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 20510 <at> debbugs.gnu.org (full text, mbox):
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Mon, 30 Sep 2019 02:10:24 +0200
> Cc: Fabrice Niessen <fni-news <at> pirilampo.org>, 20510 <at> debbugs.gnu.org
>
> >> I mean: can't the hl-line-mode code be written in a way that the
> >> underline goes in the background of the character, that is that every
> >> pixel of every character gets written "over" the underline line?
> >
> > hl-line-mode cannot control that, and nothing on the Lisp level can.
> >
> > When hl-line-mode puts its overlay on a line, the characters of that
> > line have the hl-line face merged with their face, with the result
> > that each character of that line will have the underline face in the
> > color you specify. That's all Lisp can do; then along comes the
> > display engine and redraws the characters in this new merged face.
> > The C code which draws characters is written so that we first draw the
> > background, then the characters, then the underline.
> >
> > So what you are actually asking is that the order of drawing the
> > underline (and also overline, strike-through, etc.) is changed so that
> > these attributes are drawn _before_ the characters. That should be
> > possible by changing the order in the C code, but I have no idea what
> > that will do in other situations. It's probably not TRT at least when
> > we draw images and other similar stuff instead of characters.
> >
> > Perhaps someone who knows more than I do about GUI display back-end
> > could tell if this is a safe change.
>
> It sounds to me like this is not something we are interested in doing.
> I'm closing this as wontfix.
I can also suggest trying to play with the following variables, which
affect how the underline is displayed:
underline-minimum-offset
x-underline-at-descent-line
x-use-underline-position-properties
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 28 Oct 2019 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 180 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.