From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25216: 26.0.50 [regression]; Curly quotes are not found in some sizes of =?UTF-8?Q?=E2=80=98Terminus=E2=80=99?= font Date: Sat, 17 Dec 2016 13:02:42 +0200 Message-ID: <83inqi7r8t.fsf@gnu.org> References: <87bmwbv038.fsf@gmail.com> <83lgvf6kar.fsf@gnu.org> <871sx6vr1u.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1481974191 16250 195.159.176.226 (17 Dec 2016 11:29:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2016 11:29:51 +0000 (UTC) Cc: 25216@debbugs.gnu.org To: Dmitry Alexandrov <321942@gmail.com> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 17 12:29:47 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIDBT-0003Dc-7H for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Dec 2016 12:29:47 +0100 Original-Received: from localhost ([::1]:36190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIDBW-00020S-45 for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Dec 2016 06:29:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cICmc-00020x-0a for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 06:04:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cICmY-0001KD-RI for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 06:04:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57623) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cICmY-0001K7-P6 for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 06:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cICmY-00085w-HN for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 06:04: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: Sat, 17 Dec 2016 11:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25216 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25216-submit@debbugs.gnu.org id=B25216.148197261031074 (code B ref 25216); Sat, 17 Dec 2016 11:04:02 +0000 Original-Received: (at 25216) by debbugs.gnu.org; 17 Dec 2016 11:03:30 +0000 Original-Received: from localhost ([127.0.0.1]:44789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cICm2-000857-4u for submit@debbugs.gnu.org; Sat, 17 Dec 2016 06:03:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cICm0-00084w-Vp for 25216@debbugs.gnu.org; Sat, 17 Dec 2016 06:03:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cICls-0001DK-NQ for 25216@debbugs.gnu.org; Sat, 17 Dec 2016 06:03:23 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cICls-0001DC-Kd; Sat, 17 Dec 2016 06:03:20 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3569 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cIClr-00031a-NF; Sat, 17 Dec 2016 06:03:20 -0500 In-reply-to: <871sx6vr1u.fsf@gmail.com> (message from Dmitry Alexandrov on Sat, 17 Dec 2016 12:33:01 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127101 Archived-At: > From: Dmitry Alexandrov <321942@gmail.com> > Cc: 25216@debbugs.gnu.org > Date: Sat, 17 Dec 2016 12:33:01 +0300 > > > What is wrong with how it looks? > > That’s apparently another font. > > > Info mode uses several fonts anyway, > > ‘GNU Emacs Manual’ was a mere example of an easy accessible page that uses that symbols. And the quotes are not the only problematic glyphs, just the most notable ones. Now I noticed the same issue with arrows: ↑ ← ↓ and →, I guess there are others. It doesn't surprise me. What I don't understand is why this happens. Emacs explicitly tests the default font for supporting any symbol or punctuation character it needs to display, before it looks for another font. See the function face_for_char in fontset.c. > Aha! Thanks. The exact problematic commit is ‘2276a19d’ [0]. > > By the way, how could I prove that without rebuilding the whole Emacs? I tried: > > $ git show 2276a19^:lisp/international/fontset.el > /tmp/lisp/fontset.el > $ emacs --directory /tmp/lisp --quick --font '-*-terminus-medium-r-*-*-20-*-*-*-*-*-*-*' > > Despite that: > > (locate-library "fontset") > ⇒ "/tmp/lisp/fontset.el" > > I did not see any effect. You must rebuild Emacs or manually load fontset.el after changing it. fontset.el is preloaded when Emacs is built. > > I think you should be able to force Emacs to use your font for these > > characters by using set-fontset-font for the range of codepoints you > > want to be displayed by the Terminus font. > > Yes, indeed. Many thanks. > > (set-fontset-font "fontset-default" '(#x2000 . #x2067) "Terminus") > > However, It might be even better if I could erase that rule, as if there were no lines about that range in ‘fontsel.el’. Is it possible? That would adversely affect all the users. We arrived at that rule after many complaints that symbol and punctuation characters are not displayed at all, or displayed using variable-pitch fonts, so we made the default fontset "smarter" about that by using fonts people generally have installed and which are the default fonts in Emacs. > > Of course, if you or someone can explain why Emacs doesn't use the > > default font, as it should have, for these characters, that would be > > even better, since we might then be able to fix the problem without > > any need for user customizations. > > > > One idea I have is that the way you specify the font on the Emacs > > command line doesn't specify a registry. Did you try using iso10646-1 > > as the registry? > > I’ve just tried — no effect. You don't need to change fontset.el for that, just add the set-fontset-font line to your .emacs.