all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alexander Miller <alexanderm@web.de>
Cc: 26445@debbugs.gnu.org, npostavs@users.sourceforge.net
Subject: bug#26445: 26.0.50; Scroll margin and cursor movement working incorrectly when scrolling over different height lines
Date: Fri, 14 Apr 2017 15:16:14 +0300	[thread overview]
Message-ID: <83k26ngp69.fsf@gnu.org> (raw)
In-Reply-To: <abdd6ca8-5f73-827a-76ac-d64221b9ddcf@web.de> (message from Alexander Miller on Fri, 14 Apr 2017 12:56:30 +0200)

> Cc: npostavs@users.sourceforge.net, 26445@debbugs.gnu.org
> From: Alexander Miller <alexanderm@web.de>
> Date: Fri, 14 Apr 2017 12:56:30 +0200
> 
> On 14/04/17 09:06, Eli Zaretskii wrote:
> > That depends on what font you have installed that's used to display
> > those characters.  It is best to have fonts of approximately the same
> > height.
> How would I go about finding out which fonts have which height

I don't know any way except by trying, sorry.  Perhaps some font
expert could offer a more useful method.

> and how to make emacs use them?

You do that by customizing the default fontset.  There are examples in
the Emacs manual, and you can see more examples in fontset.el which
comes with Emacs.

> For emacs I found I could do something like
> (set-fontset-font "fontset-default" nil (font-spec :size 1 :name "Symbola"))
> but that doesn't seem to do anything.

If you have Symbola installed, Emacs will already use it by default.
You can see which font is used for a character by invoking "C-u C-x ="
at that character's position.  If Symbola is not used for some
characters, you could customize your default fontset so that it is.

> > There's no need to get rid of margins, as I think the problem you
> > describe is purely aesthetic, and quite expected when you have lines
> > of different height.  Why does it bother you so much?
> I just don't like the inconsistency. The scroll stutter happens when I'm 
> quickly scrolling through a buffer and suddenly see my cursor change
> position for seemingly no reason.

There's no way around that when screen lines have different height.
The most you can do is make sure (most of) your fonts are of the same
height.  FWIW, the characters you mentioned in your email are
displayed on my system using Symbola, and the height of the line is
the same as for the surrounding text.  So perhaps you should just make
sure your Emacs uses Symbola for them?

> > Btw, , , and  are private-use area (PUA) characters, so I'm not
> > sure what you expected from Emacs to do with them.
> I've picked those up from Font Awesome, which brings us back to my 
> previous question.

I tried to answer it above.

> Is it possible to tell emacs that Font Awesome Icons should have the
> same size as my default text font, and if yes how do I do it?

Once you tell Emacs to use that font for some range of characters, it
should choose the best size automatically.





  reply	other threads:[~2017-04-14 12:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-11 16:50 bug#26445: 26.0.50; Scroll margin and cursor movement working incorrectly when scrolling over different height lines Alexander Miller
2017-04-13 19:09 ` Noam Postavsky
2017-04-13 19:39   ` Eli Zaretskii
2017-04-13 20:05     ` Noam Postavsky
2017-04-13 21:07       ` Alexander Miller
2017-04-14  7:06         ` Eli Zaretskii
2017-04-14  7:46           ` Eli Zaretskii
2017-04-14 10:56           ` Alexander Miller
2017-04-14 12:16             ` Eli Zaretskii [this message]
     [not found]               ` <fa0f7cdf-fda4-ce15-9ff8-37ea1767c771@web.de>
2017-04-14 16:07                 ` Eli Zaretskii
2017-04-14  6:50       ` 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

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

  git send-email \
    --in-reply-to=83k26ngp69.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=26445@debbugs.gnu.org \
    --cc=alexanderm@web.de \
    --cc=npostavs@users.sourceforge.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.