unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Greg A. Woods" <woods@robohack.ca>
Cc: 53924@debbugs.gnu.org
Subject: bug#53924: 26.1; fontification sometimes fails for some characters despite available glyphs
Date: Fri, 11 Feb 2022 09:15:09 +0200	[thread overview]
Message-ID: <834k55ub5u.fsf@gnu.org> (raw)
In-Reply-To: <m1nIIwv-0039XwC@more.local> (woods@robohack.ca)

> Date: Thu, 10 Feb 2022 15:34:05 -0800
> From: "Greg A. Woods" <woods@robohack.ca>
> CC: 53924@debbugs.gnu.org
> 
> Yes, indeed I do consider it a problem -- something is sometimes
> swapping glyphs that should not be doing so, and doing so inconsistently
> for some reason.

It might look inconsistent from your POV, but Emacs has its own ideas
about this, and they are consistent as soon as one understands the
code and its design ideas.

> I don't consider all the fonts available to be "good enough for Emacs",
> quite the contrary, but I do believe Emacs should be able to show me
> text rendered with any and all available glyphs from these fonts upon
> request.  If Xterm can, why can't Emacs?

Emacs is not xterm.  Emacs doesn't examine each and every glyph of a
font when it decides when to use it, because that would be
prohibitively expensive on systems that have many fonts available.
AFAIK, xterm uses a static arrangement of fonts, and does not by
itself look for fonts suitable for a given character outside of the
set of fonts specified to it externally.  Well, that's not how Emacs
works, not at all.  So there's little surprise the results might be
different for some fonts.

> The exception of course is if there's something actually wrong with the
> font, or its encoding, or some such non-Emacs problem.  I would expect
> such problems to show up in xfontsel though.

How can xfontsel know which problems are relevant to Emacs use of
fonts and Emacs display engine in general?

> One more possibly relevant observation:  I don't see this problem with
> Emacs built using the "nextstep" toolkit and running on native macOS.
> There even when the font has a strange encoding (e.g. for symbol fonts),
> or no ASCII glyphs at all, I see either the symbols in their place, or
> empty boxes.

So maybe what you see is specific to that OS (NetBSD, AFAIU).

FWIW, I don't see what we can do about this bug report.





  reply	other threads:[~2022-02-11  7:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-10 19:02 bug#53924: 26.1; fontification sometimes fails for some characters despite available glyphs Greg A. Woods
2022-02-10 20:21 ` Eli Zaretskii
2022-02-10 23:34   ` Greg A. Woods
2022-02-11  7:15     ` Eli Zaretskii [this message]
2022-02-11 21:56       ` Greg A. Woods
2022-02-13  6:06       ` Greg A. Woods
2022-02-13 11:53         ` Eli Zaretskii
2022-02-15  2:01           ` Greg A. Woods
2022-02-15 14:21             ` Eli Zaretskii
2022-02-15 22:04               ` Greg A. Woods
2022-02-16  2:32               ` Greg A. Woods
2022-02-16  3:36                 ` Eli Zaretskii
2022-02-16 21:55                   ` Greg A. Woods
2022-02-16 22:14                 ` Lars Ingebrigtsen
     [not found] ` <handler.53924.B.164452023325832.ack@debbugs.gnu.org>
2022-02-10 22:42   ` Greg A. Woods

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=834k55ub5u.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=53924@debbugs.gnu.org \
    --cc=woods@robohack.ca \
    /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).