From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#53924: 26.1; fontification sometimes fails for some characters despite available glyphs Date: Fri, 11 Feb 2022 09:15:09 +0200 Message-ID: <834k55ub5u.fsf@gnu.org> References: <838ruitqu9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24470"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53924@debbugs.gnu.org To: "Greg A. Woods" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 11 08:17:08 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIQB2-0006CS-31 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Feb 2022 08:17:08 +0100 Original-Received: from localhost ([::1]:59142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIQAz-0006el-Nx for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Feb 2022 02:17:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIQA6-0006cu-6S for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 02:16:10 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIQ9y-0003hg-O1 for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 02:16:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIQ9y-000849-EH for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 02:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Feb 2022 07:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53924 X-GNU-PR-Package: emacs Original-Received: via spool by 53924-submit@debbugs.gnu.org id=B53924.164456371930947 (code B ref 53924); Fri, 11 Feb 2022 07:16:02 +0000 Original-Received: (at 53924) by debbugs.gnu.org; 11 Feb 2022 07:15:19 +0000 Original-Received: from localhost ([127.0.0.1]:58111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIQ9H-000835-5B for submit@debbugs.gnu.org; Fri, 11 Feb 2022 02:15:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIQ9F-00082r-N0 for 53924@debbugs.gnu.org; Fri, 11 Feb 2022 02:15:18 -0500 Original-Received: from [2001:470:142:3::e] (port=46510 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIQ9A-0003Sr-6Q; Fri, 11 Feb 2022 02:15:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=FPbo8Tw8Z45oLyAQPTKxg1JYFKsbbl4ku0XS1M73slE=; b=ikUw8cCbAO1u QH6mw3UPQnQY7kv/RN+26sFAYrHhNC3MXbKjX7XAx1fY9veXK6vlgPxmUuYzGcTzChgH922Vne94a 189sAY3Yy3YshXFkX27wOo4jSapzTxZ6sp1pTSQxPXElGh+Pmechtpyco2MO0rNd3oVwehPOEhLuw x+PpEwfZvT1+7Bt8UvHDpfgO3EAmL/WcdyiiNjoNslVWDO7txz9fbWN3GNs/BMVtabxAFeaLGlGoj qxkpZixMYxipFB42knVbyhVRSiiUsN5O+o+MluiNWV10uSJYyVkBotgGYTbrT+UjKpY9+S6WmoXY7 gVo0G2L7aYkwSgqpsNgyQQ==; Original-Received: from [87.69.77.57] (port=3209 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIQ99-0005o0-Mu; Fri, 11 Feb 2022 02:15:12 -0500 In-Reply-To: (woods@robohack.ca) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226646 Archived-At: > Date: Thu, 10 Feb 2022 15:34:05 -0800 > From: "Greg A. Woods" > 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.