From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Alexandrov <321942@gmail.com> 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 12:33:01 +0300 Message-ID: <871sx6vr1u.fsf@gmail.com> References: <87bmwbv038.fsf@gmail.com> <83lgvf6kar.fsf@gnu.org> 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 1481967254 9248 195.159.176.226 (17 Dec 2016 09:34:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2016 09:34:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 25216@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 17 10:34:09 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 1cIBNZ-0001lm-Az for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Dec 2016 10:34:09 +0100 Original-Received: from localhost ([::1]:35801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIBNd-00033X-Ol for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Dec 2016 04:34:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIBNV-00030e-Iq for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 04:34:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIBNS-0003MZ-Ej for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 04:34:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57615) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cIBNS-0003MM-Bh for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 04:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cIBNS-0005tv-5s for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 04:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Alexandrov <321942@gmail.com> Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Dec 2016 09:34: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.148196718522606 (code B ref 25216); Sat, 17 Dec 2016 09:34:02 +0000 Original-Received: (at 25216) by debbugs.gnu.org; 17 Dec 2016 09:33:05 +0000 Original-Received: from localhost ([127.0.0.1]:44781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIBMX-0005sY-4y for submit@debbugs.gnu.org; Sat, 17 Dec 2016 04:33:05 -0500 Original-Received: from mail-lf0-f50.google.com ([209.85.215.50]:35635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <321942@gmail.com>) id 1cIBMV-0005s1-Fo for 25216@debbugs.gnu.org; Sat, 17 Dec 2016 04:33:03 -0500 Original-Received: by mail-lf0-f50.google.com with SMTP id b14so23713820lfg.2 for <25216@debbugs.gnu.org>; Sat, 17 Dec 2016 01:33:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:mail-copies-to :date:message-id:mime-version:content-transfer-encoding; bh=wY4EgvH97MCwvFiiFHEyoJYFFRVJ5JRQLOYXZICSYd0=; b=uzbZQAKL8TS8L134yhtl5JXYy4QpC5j8SL/7j/ybYoYJgWvFHkxnP9TLk7G3+bfSvi 0x8KOrUrrIAjpUBhbdRYSD7DakuB5kyRQO8pNJbsloJm2tPJHepESsNENWpmOUt1Cmdk /W567yJbRVpSne49fCYdQ5eX6R2a/FsdUQNRjG5NXqzFqe8UEe7aqn/twb12NsjTYoP7 rHUaiJ/NCfSsN+0pcILvr1XNIrfjq/CUqyJjtnK2b6LFDev5e6Y0qr/Nqxf+DFgp9RFI Rs7rMI/g3qdGk1c1MmlvF5wC2QLALbscXWGj5QKptEsds+xx0KbgTgaHv0PoAvkKnkC/ epfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:mail-copies-to:date:message-id:mime-version :content-transfer-encoding; bh=wY4EgvH97MCwvFiiFHEyoJYFFRVJ5JRQLOYXZICSYd0=; b=PoDnm2ZJvSzkKT3oBWfsCAY5c0zna90XQcQzvKHQJBGRXtHiniH84CJlE+cQ/O2Ro3 KZoIhzZT07GpmeStq4z1vWGJmGWbw0MdF1jCgxynY8y+lw1RjvNWfBsgxztqCQ2/wC7h ofRILFTlzEXrXzEUp8Yx8mAnothyfX673QVG1HQQgituDMFUMxkGD/pNaPNY0JetidRD mVnhRrpV0pTehbGczAFaKGy8owcbJVYDOY2qjurqEHiIg8Nh/HfoC40azC0iI3fYTskW YMCiLiCYr+E22Y9tr2aVbCWw9raDhgGwUq9JCDBdvZ6Jb4Kjj75D1Uu8ybCnyQhGdJBt RjEw== X-Gm-Message-State: AKaTC01MYC7kzXUlBwmBfd3lcb0fPHD957COb7PJDhH9M0rq7lohUZ9giPsBJKGBusZyxA== X-Received: by 10.25.203.148 with SMTP id b142mr2099372lfg.145.1481967177362; Sat, 17 Dec 2016 01:32:57 -0800 (PST) Original-Received: from asus.local ([178.218.27.218]) by smtp.gmail.com with ESMTPSA id u204sm1951036lja.5.2016.12.17.01.32.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Dec 2016 01:32:56 -0800 (PST) In-Reply-To: <83lgvf6kar.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Dec 2016 10:18:04 +0200") Mail-Copies-To: always 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:127100 Archived-At: >> Steps to reproduce: >> >> $ emacs --quick --font '-*-terminus-medium-r-*-*-20-*-*-*-*-*-*-*' >> >> Find some document with curly quotes: ‘’ and “”. GNU Emacs Manual (‘ r’) uses them heavily, for instance. >> >> It looks wrong: > > 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. > so seeing a different font used for quotes shouldn't be a disaster. > >> ‘C-u C-x =’ says that instead of Terminus >> ‘x:-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1’ font >> is used for rendering quotes. When I request 24th size, I got yet >> another font — >> ‘x:-efont-fixed-medium-r-normal--24-240-75-75-c-240-iso10646-1’. >> >> In a strange way there is no such a problem with some other sizes: >> >> $ emacs --quick --font '-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*' >> >> is okay, for example. ‘C-u C-x =’ says that >> ‘xft:-xos4-Terminus-normal-normal-normal-*-16-*-*-*-c-80-iso10646-1’ >> is used in that case. > > Emacs 25 should prefer the default font for symbol and punctuation > characters, as long as the default font supports them. So I don't > understand why you see these character displayed using another > if the default one has the corresponding glyphs. > >> The reason is *not* that Terminus just does not have these glyphs — >> it does. Moreover — GNU Emacs 24.4.1 finds and renders them >> correctly: > > Emacs 25 has different settings of the default fontset, see > fontset.el. 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. [0] https://lists.gnu.org/archive/html/emacs-diffs/2015-06/msg00150.html > It instructs Emacs to use fixed-medium fonts for symbols > and punctuation characters that are absent from the default font. > Emacs 24 didn't have those settings. > 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? > 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.