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, 31 Dec 2016 08:56:21 +0300 Message-ID: <87k2agfxq2.fsf@gmail.com> References: <87bmwbv038.fsf@gmail.com> <83lgvf6kar.fsf@gnu.org> <871sx6vr1u.fsf@gmail.com> <83inqi7r8t.fsf@gnu.org> <87wpewtxne.fsf@gmail.com> <83bmw860rw.fsf@gnu.org> <8760mgigx7.fsf@gmail.com> <834m1z6gkp.fsf@gnu.org> <87inqfz52f.fsf@gmail.com> <838trb46jg.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 1483163840 15577 195.159.176.226 (31 Dec 2016 05:57:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2016 05:57:20 +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 31 06:57:16 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 1cNCfF-0002cE-2T for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Dec 2016 06:57:09 +0100 Original-Received: from localhost ([::1]:42693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNCfJ-0003iN-U9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Dec 2016 00:57:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNCfB-0003h3-TO for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 00:57:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNCf8-0007Np-00 for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 00:57:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45395) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cNCf7-0007Nl-Sh for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 00:57:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cNCf7-0007sj-MH for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 00:57:01 -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, 31 Dec 2016 05:57:01 +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.148316379130262 (code B ref 25216); Sat, 31 Dec 2016 05:57:01 +0000 Original-Received: (at 25216) by debbugs.gnu.org; 31 Dec 2016 05:56:31 +0000 Original-Received: from localhost ([127.0.0.1]:60794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNCed-0007s2-CT for submit@debbugs.gnu.org; Sat, 31 Dec 2016 00:56:31 -0500 Original-Received: from mail-lf0-f68.google.com ([209.85.215.68]:35001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <321942@gmail.com>) id 1cNCeb-0007ro-W6 for 25216@debbugs.gnu.org; Sat, 31 Dec 2016 00:56:30 -0500 Original-Received: by mail-lf0-f68.google.com with SMTP id x140so21600404lfa.2 for <25216@debbugs.gnu.org>; Fri, 30 Dec 2016 21:56:29 -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=yzMs60a/WGz13dO2yrzysv0syzdrbqPOFZhWAZJZiUI=; b=JlfC867zMYso1olFoPrnon4qFbl87qpKlCg+4U17gO/1CoREuKNUOkpCXnCK9Yq1iW v6Juxj9t4siZYdDUdM1RFpJz+CLBD8zMQ9WDf5kcZ/zFrTSgvwZn2LkNv8qSxWHSqA32 39YOI95T6Hp8vsnAAgPgVyTJ6XwLK4YlD49yKoEauDiJuj3hOzJKfYYzo5dVK5iojO1J cwSkeJHqYF3ZdaiNmi1DTG5OUY6Ft3jgKv6rRerX1YfflFT496uLRtzCX2wsKvqRrVzN bk7LhKiohLwdXeOvdQYvoeVen53VGd/J5be9vZ+ZzqQU9kHz3eEiS3+QCi+2o/hYSpEA STcg== 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=yzMs60a/WGz13dO2yrzysv0syzdrbqPOFZhWAZJZiUI=; b=j5+LzDK4K6taF8vDQDHRlqmyEBk2TGeqb/oTqo0oEkjubkyQQuOI7qFrnw7yWMZxpE iYYgeRvTGhOcnlt7CTGzrRUJlD59Mvmp7WRvxEGdIeb+7CoVuQOvt81yqzRinkPbEQZz dwTiSJIMp/dccYP4eEZHuB/rkDQXVj5XMl4KDMjWs4Pk0qFVGOyBar8rVY+kJ/uCqNx5 N3tsl6CQc3pm4eGrR5kJk3MeAlRzTYWCdXBAsQ8gUU/8h35DE+jOca4c8CPINfnGQcZN FqAT2Sm6nh+5X59LIOfn0DdmKn74l2nf84FCIFICSmHnhb/DUWugJgKKy4JDGvSpc6CE +QqA== X-Gm-Message-State: AIkVDXKHCdJf1WOck6K4NXfHS0ltvQL9UGBVsCCfxoUpAwxvAkuKIXNgPjbnqq9KsLwIPw== X-Received: by 10.46.77.149 with SMTP id c21mr18138941ljd.10.1483163783983; Fri, 30 Dec 2016 21:56:23 -0800 (PST) Original-Received: from asus.local ([178.218.27.218]) by smtp.gmail.com with ESMTPSA id y10sm13978737lja.45.2016.12.30.21.56.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Dec 2016 21:56:23 -0800 (PST) In-Reply-To: <838trb46jg.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 20 Dec 2016 05:34:59 +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:127613 Archived-At: >> > And I still don't understand why you need that. AFAICS, Emacs >> > explicitly tries to use the default font for punctuation and symbol >> > characters before falling back on looking up other fonts. >> >> Do you mean that you could not reproduce this? > > It means I don't understand how it could happen. The function > face_for_char (defined in fontset.c) explicitly tries the current > default font for any punctuation and symbol character, before it > starts looking in other fonts. I don't understand why this fails for > you, and only in certain font sizes on top of that. Perhaps you could > step through that code with a debugger and see what happens there? Well. font_has_char of font.c:2989 returns 0 ← xftfont_has_char of xftfont.c:532 returns 0 ← XftCharExists of libXft.so.2 returns 0. So the problem goes into libxft2. Thus the possible workaround may be to prefer ‘x’ backend for font rendering: $ emacs -q -fn '-*-terminus-*-18-*-iso10646-1' -xrm 'emacs.fontBackend: x,xft' However, by a fluke dropping ‘x’ entirely also conceals the issue at least on my system: $ emacs -q -fn '-*-terminus-*-18-*-iso10646-1' -xrm 'emacs.fontBackend: xft' Only that (which is presumably the default) leads to the problem: $ emacs -q -fn '-*-terminus-*-18-*-iso10646-1' -xrm 'emacs.fontBackend: xft,x' At least it’s now clear what’s so special about combination of Terminus and GNU Emacs — the former it is a rare example of a font that is available through both of font engines, the latter — of an application that uses both of them.