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#44664: 28.0.50; troubles with some chars in term Date: Wed, 25 Nov 2020 17:35:39 +0200 Message-ID: <83mtz5sb3o.fsf@gnu.org> References: <87pn4c1hou.fsf@igel.home> <87d00c1f56.fsf@igel.home> <83tutoqaot.fsf@gnu.org> <83blfvr8xs.fsf@gnu.org> <873617zlor.fsf@igel.home> <838sazqr2r.fsf@gnu.org> <877dqjhy0x.fsf@igel.home> <873617m4tv.fsf@gnus.org> <834klmr989.fsf@gnu.org> <87lfeyl6l9.fsf@gnus.org> <838sayowgd.fsf@gnu.org> <87r1opjbs1.fsf@gnus.org> <837dqg1nqa.fsf@gnu.org> <878sarcn31.fsf@gnus.org> <83v9duu5w5.fsf@gnu.org> <87tute0vu6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22967"; mail-complaints-to="usenet@ciao.gmane.io" Cc: schwab@linux-m68k.org, bugs@gnu.support, 44664@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 25 16:36:17 2020 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 1khwq9-0005pa-6A for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 16:36:17 +0100 Original-Received: from localhost ([::1]:51498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khwq7-0006gn-NX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 10:36:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khwpu-0006gM-O0 for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 10:36:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khwpu-0005LB-GV for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 10:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khwpu-0001I7-Dl for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 10:36: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: Wed, 25 Nov 2020 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44664 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 44664-submit@debbugs.gnu.org id=B44664.16063185584955 (code B ref 44664); Wed, 25 Nov 2020 15:36:02 +0000 Original-Received: (at 44664) by debbugs.gnu.org; 25 Nov 2020 15:35:58 +0000 Original-Received: from localhost ([127.0.0.1]:36708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khwph-0001Hh-UD for submit@debbugs.gnu.org; Wed, 25 Nov 2020 10:35:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khwpf-0001HU-TH for 44664@debbugs.gnu.org; Wed, 25 Nov 2020 10:35:48 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46380) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khwpY-0005Ea-H4; Wed, 25 Nov 2020 10:35:40 -0500 Original-Received: from [176.228.60.248] (port=3576 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1khwpW-0004wZ-UE; Wed, 25 Nov 2020 10:35:39 -0500 In-Reply-To: <87tute0vu6.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 25 Nov 2020 07:55:13 +0100) 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:194203 Archived-At: > From: Lars Ingebrigtsen > Cc: schwab@linux-m68k.org, bugs@gnu.support, 44664@debbugs.gnu.org > Date: Wed, 25 Nov 2020 07:55:13 +0100 > > 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? This is a subtlety of the Emacs handling of faces: the font part of the face spec only specifies the font for ASCII characters. When Emacs needs to display non-ASCII characters, it internally creates a new face, which is based on the ASCII face, but uses a different font if necessary. Those internally-created faces aren't visible from Lisp, but you can see them in the frame's face cache and in the glyph matrices. > 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? Maybe. We can do that as well, btw. We already do something like that with fonts that declare too large height for its character glyphs: we override that with a reasonable value. We could do something similar for the width, conditioned on some buffer-local variable. The relative complexity of this wrt what terminal emulators do is that terminal emulators can do that always, whereas Emacs cannot do that by default, it must be an opt-in feature requested by the likes of term.el.