unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Nick Helm <nick@tenpoint.co.nz>
To: <21835@debbugs.gnu.org>
Subject: bug#21835: 25.0.50; cursor height wrong when line-spacing is used
Date: Mon, 21 Mar 2016 17:03:42 +1300	[thread overview]
Message-ID: <m2y49cscip.fsf@tenpoint.co.nz> (raw)
In-Reply-To: <B5C62293-85C4-4F7F-BFF2-4B8A031AAD48@gmail.com>

I also have set line-spacing in my init.el. I like how the size of the cursor now
reflects the size of the glyph under point - it avoids many of the problems of
badly designed typefaces. However, I also find the changing EOL cursor-height
size between line-body and line-end quite jarring while writing and editing.

Could the EOL cursor-height be set to the height of the tallest glyph in the line?
In Emacs 24, my understanding is that cursor-height = line-height, where
line-height was determined by adding the height of the tallest glyph in the line
to the top and bottom vertical spacing. This is the same, just without the
spacing.

Alternatively, how about setting the EOL cursor-height to the same height as the
last *displayable* glyph in the line, but with a lower size boundary? If there are
no displayable glyphs in the line or the line is empty, could the height of the
closest previous displayable glyph be used, even if it's on an earlier line? If
the buffer is empty or contains no displayable glyphs, use (default line-height -
line-spacing).

If none of that's possible or causes more grief than it's worth, how about also
letting the user arbitrarily set the cursor height? There'd need to be some
boundaries, perhaps a percentage of line-height, but this might also work well for
some people and fonts.





  parent reply	other threads:[~2016-03-21  4:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-05  4:21 bug#21835: 25.0.50; cursor height wrong when line-spacing is used David Reitter
2015-11-05 16:12 ` Eli Zaretskii
2015-11-06  3:12   ` David Reitter
2015-11-06  8:15     ` Eli Zaretskii
2015-11-06  9:31     ` Eli Zaretskii
2015-11-06 14:10   ` Stefan Monnier
2015-11-06 14:28     ` Eli Zaretskii
2016-03-21  4:03 ` Nick Helm [this message]
2016-03-21 15:58   ` Eli Zaretskii

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=m2y49cscip.fsf@tenpoint.co.nz \
    --to=nick@tenpoint.co.nz \
    --cc=21835@debbugs.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).