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

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

At Fri, 11 Feb 2022 09:15:09 +0200, Eli Zaretskii <eliz@gnu.org> wrote:
Subject: Re: bug#53924: 26.1; fontification sometimes fails for some characters despite available glyphs
>
> 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.

The inconsistency I'm observing seems to be within Emacs itself, or
perhaps in the way it uses the GTK2 toolkit (gbdfed, also using GTK2,
does not have any problem, either directly on the problem fonts, or via
fetching them from the X11 server).

I probably shouldn't have mentioned Xterm since, as you say, it has an
even more restrictive view of how to manage fonts, and specifically
can't deal with proportional fonts at all.

So Emacs+GTK2 can display some fonts perfectly, but not others, despite
the fact the underlying system (i.e. X11) and its related tools
(e.g. xfontsel, xfd, gbdfed, etc.) can display and find (xlsfonts) all
those fonts with no problem.

There's also nothing whatsoever in any available documentation I can
find which even remotely suggests that what I expect Emacs to do will
not happen for some reason.

If you can point me to any such documentation, that would be excellent.

If not then this is a real bug, though as I've said I'm not sure the bug
is in Emacs -- it could well be some otherwise hidden defect in the
fonts, their encodings, and/or how they are loaded by the X11 server.

I just can't find anything whatsoever, so far, to point responsibility
to anything other than Emacs, and specifically in an Emacs built with
the GTK2 toolkit.

Have you run the function I supply to see how it fares in your
environment with your available font families?


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

It doesn't of course -- but it (and the other related tools, including
gbdfed) demonstrates that the font, and its encoding, and the underlying
X11 display engine, are all perfectly happy to load and correctly
display the glyphs for the problem fonts.

What could possibly be different about a font that would lead Emacs+GTK2
to ignore some/all of the available glyphs for the ASCII characters in
that font (but not ignore them in the Emacs+nextstep variant)?

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

I would think that's literally impossible.  The Emacs code is all very
portable (and is indeed running on NetBSD), as is the font handling and
most of the X11 server itself (which is running on macOS) -- the only
thing that's unique in my specific test scenario (the macOS part) is
demonstrably not a problem because it is all perfectly happy to display
all available fonts in all other contexts, both in native macOS as well
as in the X11 server running on it (e.g. Emacs+nextstep in native macOS,
or gbdfed, and all the X11 font tools running on macOS).

--
					Greg A. Woods <gwoods@acm.org>

Kelowna, BC     +1 250 762-7675           RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>     Avoncote Farms <woods@avoncote.ca>

[-- Attachment #2: OpenPGP Digital Signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2022-02-11 21:56 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
2022-02-11 21:56       ` Greg A. Woods [this message]
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=m1nIdtc-0039XwC@more.local \
    --to=woods@robohack.ca \
    --cc=53924@debbugs.gnu.org \
    --cc=eliz@gnu.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).