From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40097: 28.0.50; Preferred font ignored for specific charset Date: Wed, 18 Mar 2020 16:29:23 +0200 Message-ID: <83lfnxg2ik.fsf@gnu.org> References: <87r1xriovt.fsf@osv.gnss.ru> <831rprgg2g.fsf@gnu.org> <87tv2narke.fsf@osv.gnss.ru> <83wo7jey86.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="59838"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sorganov@gmail.com, 40097@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 18 15:30:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jEZi0-000FSC-0d for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Mar 2020 15:30:12 +0100 Original-Received: from localhost ([::1]:51390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEZhy-0002Gm-Ul for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Mar 2020 10:30:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57253) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEZhr-0002Gb-Bv for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 10:30:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEZhq-0006Zq-Cu for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 10:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEZhq-0006Z4-9j for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 10:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jEZhq-0003U5-4f for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 10:30: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: Wed, 18 Mar 2020 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40097 X-GNU-PR-Package: emacs Original-Received: via spool by 40097-submit@debbugs.gnu.org id=B40097.158454178413349 (code B ref 40097); Wed, 18 Mar 2020 14:30:02 +0000 Original-Received: (at 40097) by debbugs.gnu.org; 18 Mar 2020 14:29:44 +0000 Original-Received: from localhost ([127.0.0.1]:40993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEZhY-0003TF-58 for submit@debbugs.gnu.org; Wed, 18 Mar 2020 10:29:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEZhW-0003T3-HP for 40097@debbugs.gnu.org; Wed, 18 Mar 2020 10:29:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jEZhR-0005tp-CF; Wed, 18 Mar 2020 10:29:37 -0400 Original-Received: from [176.228.60.248] (port=4856 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jEZhO-0002cV-BR; Wed, 18 Mar 2020 10:29:37 -0400 In-Reply-To: (message from Robert Pluim on Wed, 18 Mar 2020 12:07:54 +0100) 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177495 Archived-At: > From: Robert Pluim > Cc: Sergey Organov , Kenichi Handa , > 40097@debbugs.gnu.org > Date: Wed, 18 Mar 2020 12:07:54 +0100 > > Ah, now I see where this is coming from: I was looking down in font.c, > but this is a fontset.c feature. Yes. > Iʼm not sure how useful it is, I donʼt think fontconfig has any notion > of 'charset' beyond 'does this font support this Unicode character'. Indeed; and you will see in ftfont.c that ftfont_list (or, rather, one of the subroutines it calls) concocts a "charset" by using the few representative characters from fc_charset_table, and then asks Fontconfig to list fonts which support those characters (at least that's my reading of the code). Which is why I'm puzzled how come DejaVu Sans Mono is not in the list and we proceed to the xfont backend, because I'm quite sure DejaVu Sans does support the Cyrillic characters that represent windows-1251. If you can tell what I'm missing here, maybe we could make some progress even without changing the design.