unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vincent Lefevre <vincent@vinc17.net>
Cc: rpluim@gmail.com, 41278@debbugs.gnu.org
Subject: bug#41278: 27.0.91; incorrect U+203E OVERLINE alignment with Fantasque Sans Mono
Date: Fri, 15 May 2020 15:55:14 +0300	[thread overview]
Message-ID: <83sgg11hot.fsf@gnu.org> (raw)
In-Reply-To: <20200515115739.GC631870@zira.vinc17.org> (message from Vincent Lefevre on Fri, 15 May 2020 13:57:39 +0200)

> Date: Fri, 15 May 2020 13:57:39 +0200
> From: Vincent Lefevre <vincent@vinc17.net>
> Cc: rpluim@gmail.com, 41278@debbugs.gnu.org
> 
> On 2020-05-15 14:25:03 +0300, Eli Zaretskii wrote:
> > Does xterm support variable-pitch fonts?
> 
> Yes, but AFAIK, it systematically regards them as monospaced fonts,
> i.e. the cell dimensions are always the same (and double-width
> characters take 2 cells).

IOW, xterm doesn't support variable-pitch fonts.

> > If not, you will always see alignment in xterm, but not always in
> > Emacs.
> 
> I think that if the main font is a monospaced font, Emacs should
> honor this choice in font replacements, keeping the cell dimensions
> of the main font.

I don't see how Emacs can second-guess what the user wants in this
case.  Mixing different fonts is at the heart of the Emacs display
engine, and having different fonts have different dimensions is one of
the basic features of that.  Users will not appreciate if we will
override the font metrics based on such arbitrary considerations.  You
may want that (then again, this is just one use case, and you could
find out that in other situations even you will want something
different), but other users will not necessarily want the same.

The solution to your problem (assuming you really need this overline
character and cannot use another) is to either find a suitable font
that supports that character as use it as the default, or configure
your fontset so that some other font, which has the same width as the
default one, is used for symbols instead of Linux Libertine.

> Now, this would solve the alignment problem, but if Emacs just does
> that using the current font replacement, there will still be a space
> between the U+203E OVERLINE characters. This issue does not occur
> with xterm.

Maybe xterm uses a different font, in which case you can find what
that font is and configure Emacs to use it.





  parent reply	other threads:[~2020-05-15 12:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-14 19:41 bug#41278: 27.0.91; incorrect U+203E OVERLINE alignment with Fantasque Sans Mono Vincent Lefevre
2020-05-15  9:57 ` Robert Pluim
2020-05-15 10:28   ` Vincent Lefevre
2020-05-15 11:25     ` Eli Zaretskii
2020-05-15 11:52       ` Robert Pluim
2020-05-15 13:01         ` Eli Zaretskii
2020-05-15 11:57       ` Vincent Lefevre
2020-05-15 12:24         ` Vincent Lefevre
2020-05-15 12:58           ` Eli Zaretskii
2020-08-24  0:37             ` Stefan Kangas
2020-05-15 12:55         ` Eli Zaretskii [this message]
2020-05-15 16:17           ` Vincent Lefevre
2020-05-15 12:31     ` Vincent Lefevre
2020-05-15 10:35 ` 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=83sgg11hot.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=41278@debbugs.gnu.org \
    --cc=rpluim@gmail.com \
    --cc=vincent@vinc17.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 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).