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#31315: wrong font encoding for fallback font Date: Thu, 03 May 2018 20:48:44 +0300 Message-ID: <83a7tgpr43.fsf@gnu.org> References: <83muxjqu2e.fsf@gnu.org> <20180501.213014.1436609899151985328.wl@gnu.org> <83wowmozed.fsf@gnu.org> <20180503.075227.154521786744892904.wl@gnu.org> 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 1525369753 17836 195.159.176.226 (3 May 2018 17:49:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 May 2018 17:49:13 +0000 (UTC) Cc: 31315@debbugs.gnu.org To: Werner LEMBERG Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 03 19:49:09 2018 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 1fEILs-0004VQ-2k for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 May 2018 19:49:08 +0200 Original-Received: from localhost ([::1]:58015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEINz-0004gQ-3f for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 May 2018 13:51:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEIMp-00040C-P7 for bug-gnu-emacs@gnu.org; Thu, 03 May 2018 13:50:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEIMk-0000Rk-TD for bug-gnu-emacs@gnu.org; Thu, 03 May 2018 13:50:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fEIMk-0000Rg-P5 for bug-gnu-emacs@gnu.org; Thu, 03 May 2018 13:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fEIMk-0008Pv-I7 for bug-gnu-emacs@gnu.org; Thu, 03 May 2018 13:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 May 2018 17:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31315 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31315-submit@debbugs.gnu.org id=B31315.152536974632285 (code B ref 31315); Thu, 03 May 2018 17:50:02 +0000 Original-Received: (at 31315) by debbugs.gnu.org; 3 May 2018 17:49:06 +0000 Original-Received: from localhost ([127.0.0.1]:48471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fEILq-0008Of-Ea for submit@debbugs.gnu.org; Thu, 03 May 2018 13:49:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fEILp-0008O5-1T for 31315@debbugs.gnu.org; Thu, 03 May 2018 13:49:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEILi-000074-OY for 31315@debbugs.gnu.org; Thu, 03 May 2018 13:48:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEILZ-000056-Nz; Thu, 03 May 2018 13:48:49 -0400 Original-Received: from [176.228.60.248] (port=2199 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fEILZ-0002a6-3F; Thu, 03 May 2018 13:48:49 -0400 In-reply-to: <20180503.075227.154521786744892904.wl@gnu.org> (message from Werner LEMBERG on Thu, 03 May 2018 07:52:27 +0200 (CEST)) 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:145980 Archived-At: > Date: Thu, 03 May 2018 07:52:27 +0200 (CEST) > Cc: handa@gnu.org, 31315@debbugs.gnu.org > From: Werner LEMBERG > > > Emacs employs that logic for every charset it has defined, including > > Latin-2, for example: if text was decoded from an encoding which > > supports a particular charset, Emacs puts the corresponding > > 'charset' text property on the decoded text, and the machinery which > > selects the appropriate font tries first to find a font which > > supports that charset. The idea is that users in a particular > > culture have certain distinct preferences wrt fonts, and that an > > encoding that supports a certain charset or culture provides a hint > > about those preferences. This idea is very central in how Emacs > > selects fonts. > > Being the FreeType maintainer, and having co-developed Emacs's > internal buffer encoding scheme many, many years ago, I all know this. Sorry, I couldn't know that. > I can only repeat that Emacs might tag a certain text with GB18030 so > that the user can deduce a Chinese origin. However, there is *no* > guarantee that the user gets a Chinese-flavoured font – at least not > from the xft interface.[**] IME, there's no guarantee about anything in the Emacs font look up heuristics, except that empirically it does TRT in about 85% of uses. May I invite you to work on revisiting the design and implementation of the Emacs font-look up facilities, and on modernizing them? I'm afraid we didn't have an active developer in this area for several years, and I fear that we will stagnate (or already are stagnating). TIA