unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: Eli Zaretskii <eliz@gnu.org>
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 18:17:47 +0200	[thread overview]
Message-ID: <20200515161747.GF631870@zira.vinc17.org> (raw)
In-Reply-To: <83sgg11hot.fsf@gnu.org>

On 2020-05-15 15:55:14 +0300, Eli Zaretskii wrote:
> > 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.

Well, at least for the box drawing characters and other alignment
related characters such as U+203E OVERLINE, it can, because the
purpose of such characters is to work by taking alignment into
account, assuming a monospaced font. So, as long as the user uses
a (single) monospaced font for text, such characters should work
as expected. I don't see why a user would want something different.

BTW, such characters can also be handled directly by the application
or library (e.g., this is the case with GNOME Terminal via the VTE
library), which might be one of the reasons why some fonts do not
provide them.

Emacs even takes different box drawing characters in different fonts!
(U+2500 from Tinos, U+256D from Noto Serif CJK TC).

Note that font substitution done by gucharmap seems correct: it
usually chooses DejaVu Sans Mono for box drawing characters (except
for Noto Mono, where it surprisingly chooses DejaVu Sans, but there
does not seem to be any difference anyway). This is actually done
by fontconfig itself. Since it does a better job than Emacs, why
doesn't Emacs let it do the substitution?

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)





  reply	other threads:[~2020-05-15 16:17 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
2020-05-15 16:17           ` Vincent Lefevre [this message]
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=20200515161747.GF631870@zira.vinc17.org \
    --to=vincent@vinc17.net \
    --cc=41278@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=rpluim@gmail.com \
    /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).