unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 67563@debbugs.gnu.org
Subject: bug#67563: 30.0.50; Box should not extend with line-spacing
Date: Mon, 4 Dec 2023 00:23:21 -0800	[thread overview]
Message-ID: <41e72b13-7ff8-47ae-b0f2-7e0b2b86c089@gmail.com> (raw)
In-Reply-To: <838r6c8zr5.fsf@gnu.org>



On 12/2/23 6:06 AM, Eli Zaretskii wrote:
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Thu, 30 Nov 2023 23:47:37 -0800
>>
>> If I set a box face for a button, and then set a line-space for the buffer, I expect the extra space between lines to be added outside of the box, like so:
>>
>> +-------------------------+
>> |          Box            |
>> |                         |
>> +-------------------------+
>>         extra line space
>> +-------------------------+
>> |          Box            |
>> |                         |
>> +-------------------------+
>>
>> However, right now, the bottom line of the box includes the extra line spacing, like so:
>>
>> +-------------------------+
>> |          Box            |
>> |                         |
>> +                         +
>> |      extra line space   |
>> +-------------------------+
>> +-------------------------+
>> |          Box            |
>> |                         |
>> +-------------------------+
>>
>> Screenshot:
>>
>> Ideally there should be some space between the two buttons on the two lines. Also notice the extra space above the bottom line of the box.
>>
>> I also attached a repo file to produce these buttons.
>>
>> If someone can give me some pointers, I can try to look into this.
> We currently draw the box such that its height is equal to the height
> of the screen line, and that includes line-spacing.
>
> The implementation is in x_draw_glyph_string_box and similar functions
> in other GUI backends (w32_draw_glyph_string_box etc.).
Thanks, I'll come back when I have good questions to ask.
> If you want to ad a feature where the box excludes line-space, please
> make it optional, by default off, as the current behavior is a very
> old one.
Will do. I'm sure the current behavior has its use-cases too.

Yuan





      reply	other threads:[~2023-12-04  8:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-01  7:47 bug#67563: 30.0.50; Box should not extend with line-spacing Yuan Fu
2023-12-02 14:06 ` Eli Zaretskii
2023-12-04  8:23   ` Yuan Fu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41e72b13-7ff8-47ae-b0f2-7e0b2b86c089@gmail.com \
    --to=casouri@gmail.com \
    --cc=67563@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).