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 10:18:04 +0200 Message-ID: <83lgvf6kar.fsf@gnu.org> References: <87bmwbv038.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 1481962754 12546 195.159.176.226 (17 Dec 2016 08:19:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2016 08:19:14 +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 09:19:10 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 1cIACz-0002Nn-7L for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Dec 2016 09:19:09 +0100 Original-Received: from localhost ([::1]:35668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIAD3-00004t-Lx for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Dec 2016 03:19:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIACv-0008P7-Fw for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 03:19:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIACs-0004Is-9m for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 03:19:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cIACs-0004Il-68 for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 03:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cIACs-00048l-23 for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2016 03:19: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 08:19: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.148196273215899 (code B ref 25216); Sat, 17 Dec 2016 08:19:02 +0000 Original-Received: (at 25216) by debbugs.gnu.org; 17 Dec 2016 08:18:52 +0000 Original-Received: from localhost ([127.0.0.1]:44764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIACi-00048N-C7 for submit@debbugs.gnu.org; Sat, 17 Dec 2016 03:18:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIACh-00048B-Ek for 25216@debbugs.gnu.org; Sat, 17 Dec 2016 03:18:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIACZ-0004BF-3x for 25216@debbugs.gnu.org; Sat, 17 Dec 2016 03:18:46 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIACZ-0004BA-0U; Sat, 17 Dec 2016 03:18:43 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3370 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cIACY-0004Hp-AD; Sat, 17 Dec 2016 03:18:42 -0500 In-reply-to: <87bmwbv038.fsf@gmail.com> (message from Dmitry Alexandrov on Sat, 17 Dec 2016 04:03:07 +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:127099 Archived-At: > From: Dmitry Alexandrov <321942@gmail.com> > Date: Sat, 17 Dec 2016 04:03:07 +0300 > > 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? Info mode uses several fonts anyway, 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 font, 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. 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. 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?