unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: schwab@linux-m68k.org, bugs@gnu.support, 44664@debbugs.gnu.org
Subject: bug#44664: 28.0.50; troubles with some chars in term
Date: Wed, 25 Nov 2020 07:55:13 +0100	[thread overview]
Message-ID: <87tute0vu6.fsf@gnus.org> (raw)
In-Reply-To: <83v9duu5w5.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 24 Nov 2020 17:32:58 +0200")

[-- Attachment #1: Type: text/plain, Size: 1006 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

> Can you tell which font(s) does Terminal use for non-Latin characters,
> such as the one above?  Maybe we could learn something from that.

The gnome-terminal interface claims to be using "Monospace", which is a
font that fc-list says doesn't exist on my system, so I don't really
know what's up with that.

But I was just experimenting a bit, and I wondered how you can force
Emacs into using a specific font for some text.  The following does not
work:

(insert (propertize "fooѾx" 'face '(:family "Futura")))

Now, that font doesn't have the Ѿ glyph, so I'd expect Emacs to tofu
that character, but instead it renders it using DejaVu Sans?

Anyway, I found a mono font on my system with full coverage:

(insert (propertize "fooѾx" 'face '(:family "Noto Sans Mono")))

This renders all these characters with equal width, but using it in the
test case also fails, because amusingly enough, the tofu character it
uses isn't monospaced:


[-- Attachment #2: Type: image/png, Size: 8819 bytes --]

[-- Attachment #3: Type: text/plain, Size: 119 bytes --]


So that's a font that advertises itself as monospaced, but isn't really.

Let's see..  Oh, there's also "Noto Mono":


[-- Attachment #4: Type: image/png, Size: 22258 bytes --]

[-- Attachment #5: Type: text/plain, Size: 666 bytes --]


Success!  With this font, the test case in this bug report works fine:
There are no display glitches when running mutt under term.

But as you can see, this isn't really monospaced, either -- the tofu
glyphs here are narrower than the other glyphs.  And...  hang on --
there's still some glitches, but they are much smaller than before.

I've tried a couple more monospaced fonts, but none seem to have full
coverage.

I'm starting to wonder whether gnome-terminal is just faking the
monospaceness?  That is -- if the glyph is too wide, it's just narrowing
it?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

  reply	other threads:[~2020-11-25  6:55 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-15 19:45 bug#44664: 28.0.50; troubles with some chars in term Jean Louis
2020-11-16 22:30 ` Lars Ingebrigtsen
2020-11-17  4:15   ` Jean Louis
2020-11-17  9:00 ` Andreas Schwab
2020-11-17  9:43   ` Jean Louis
2020-11-17  9:55     ` Andreas Schwab
2020-11-17 10:00       ` Jean Louis
2020-11-17 15:12         ` Eli Zaretskii
2020-11-17 17:15           ` Jean Louis
2020-11-17 21:05             ` Eli Zaretskii
2020-11-17 21:54               ` Jean Louis
2020-11-17 22:02               ` Andreas Schwab
2020-11-18  3:30                 ` Eli Zaretskii
2020-11-18  6:05                   ` Jean Louis
2020-11-18  8:25                   ` Andreas Schwab
2020-11-18  8:39                     ` Lars Ingebrigtsen
2020-11-18  8:45                     ` Lars Ingebrigtsen
2020-11-18 15:11                       ` Eli Zaretskii
     [not found]                         ` <X7U/qT7sSLW4wcTg@protected.rcdrun.com>
2020-11-18 18:14                           ` Eli Zaretskii
2020-11-18 20:06                             ` Jean Louis
2020-11-19 14:26                               ` Eli Zaretskii
     [not found]                                 ` <X7aLF3tMx3yfkb9k@protected.rcdrun.com>
2020-11-19 16:15                                   ` Eli Zaretskii
2020-11-19 16:38                                     ` Jean Louis
2020-11-19 17:27                                       ` Eli Zaretskii
2020-11-19 16:53                                     ` Jean Louis
2020-11-19 17:28                                       ` Eli Zaretskii
2020-11-19 17:41                                         ` Jean Louis
2020-11-19 17:56                                           ` Eli Zaretskii
2020-11-18 21:04                         ` Lars Ingebrigtsen
2020-11-19  3:29                           ` Eli Zaretskii
2020-11-19 21:07                             ` Lars Ingebrigtsen
2020-11-20  7:39                               ` Eli Zaretskii
2020-11-24  5:58                                 ` Lars Ingebrigtsen
2020-11-24 15:32                                   ` Eli Zaretskii
2020-11-25  6:55                                     ` Lars Ingebrigtsen [this message]
2020-11-25  8:30                                       ` Andreas Schwab
2020-11-25  9:08                                         ` Lars Ingebrigtsen
2020-11-25  9:23                                           ` Basil L. Contovounesios
2020-11-26  9:46                                             ` Lars Ingebrigtsen
2020-11-26 10:13                                               ` Andreas Schwab
2020-11-26 10:16                                                 ` Lars Ingebrigtsen
2020-11-26 11:15                                                   ` Robert Pluim
2020-11-26 11:21                                                     ` Lars Ingebrigtsen
2020-11-26 21:14                                               ` Basil L. Contovounesios
2020-11-27  7:53                                                 ` Lars Ingebrigtsen
2020-11-25  9:27                                           ` Andreas Schwab
2020-11-25 15:35                                       ` Eli Zaretskii
2020-11-26  9:50                                         ` Lars Ingebrigtsen
2020-11-26 14:17                                           ` Eli Zaretskii
2020-11-27  7:51                                             ` Lars Ingebrigtsen
2020-11-27  8:14                                               ` Eli Zaretskii
2020-11-29  9:58                                                 ` Lars Ingebrigtsen
2020-11-29 15:46                                                   ` Eli Zaretskii
2020-11-30 10:05                                                     ` Lars Ingebrigtsen
2020-11-30 16:12                                                       ` Eli Zaretskii
2020-12-02  9:39                                                         ` Lars Ingebrigtsen
2020-12-02 15:02                                                           ` Eli Zaretskii
2020-12-02 16:33                                                             ` Jean Louis
2020-12-03  8:44                                                               ` Lars Ingebrigtsen
2020-12-03  8:52                                                                 ` Jean Louis
2020-12-03  9:02                                                                   ` Lars Ingebrigtsen
2020-12-03 15:19                                                                     ` Eli Zaretskii
2020-12-03 15:14                                                                 ` Eli Zaretskii
2020-12-03 16:59                                                                   ` Lars Ingebrigtsen
2020-12-03 17:04                                                                     ` Eli Zaretskii
2020-11-19  8:20                           ` Andreas Schwab
2020-11-19 21:06                             ` Lars Ingebrigtsen

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=87tute0vu6.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=44664@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    --cc=eliz@gnu.org \
    --cc=schwab@linux-m68k.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).