GNU bug report logs - #30553
26.0.91; underline appears beneath line-spacing rather than beneath text

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Tue, 20 Feb 2018 18:18:02 UTC

Severity: minor

Found in version 26.0.91

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 30553 <at> debbugs.gnu.org (full text, mbox):

From: Alp Aker <alptekin.aker <at> gmail.com>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 30553 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#30553: 26.0.91; underline appears beneath line-spacing rather
 than beneath text
Date: Wed, 21 Feb 2018 08:47:48 -0500
[Message part 1 (text/plain, inline)]
On Wed, Feb 21, 2018 at 1:03 AM, Aaron Jensen <aaronjensen <at> gmail.com> wrote:
> Given the name of the variable x-underline-at-descent-line, it'd
> be nice if the natural height of the font was used rather than the
> height + extra line spacing to determine where to place the underline.
> Does that make sense? Basically, it'd place the underline at the same
> place regardless of what line-spacing was set to (as if it were set to
> nil).

Something like that should already be possible.  Underline placement is
determined by the following rules, considered in this order:

1. If x-underline-at-descent-line is non-nil, underline at the descent line,
where the descent line is the bottom of the current glyph row, inclusive of
extra line spacing.

2. If x-use-underline-position-properties is non-nil and the font has
underline
position info, use that.

3. If the current font can be determined, use half of the font's descent,
"descent" here meaning the maximum amount by which a character from the font
descends below the baseline.

4. Otherwise, use the default offset (1 point).

The only one of these possibilities that should be affected a change in line
spacing is 1.  Is that not what you see?
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 77 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.