From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Sergey Organov Newsgroups: gmane.emacs.bugs Subject: bug#40097: 28.0.50; Preferred font ignored for specific charset Date: Wed, 18 Mar 2020 07:43:39 +0300 Message-ID: <87o8su9ssk.fsf@osv.gnss.ru> 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 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="113132"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 40097@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 18 05:44:13 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 1jEQYv-000TLL-72 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Mar 2020 05:44:13 +0100 Original-Received: from localhost ([::1]:45064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEQYu-00026Y-5I for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Mar 2020 00:44:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60377) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEQYl-00022O-5u for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 00:44:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEQYk-0008Vk-3r for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 00:44:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33765) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEQYk-0008VX-0V for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 00:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jEQYj-0006fG-UQ for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2020 00:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sergey Organov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Mar 2020 04:44:01 +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.158450662825592 (code B ref 40097); Wed, 18 Mar 2020 04:44:01 +0000 Original-Received: (at 40097) by debbugs.gnu.org; 18 Mar 2020 04:43:48 +0000 Original-Received: from localhost ([127.0.0.1]:39738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEQYW-0006eh-3F for submit@debbugs.gnu.org; Wed, 18 Mar 2020 00:43:48 -0400 Original-Received: from mail-lf1-f47.google.com ([209.85.167.47]:47032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEQYV-0006eW-12 for 40097@debbugs.gnu.org; Wed, 18 Mar 2020 00:43:47 -0400 Original-Received: by mail-lf1-f47.google.com with SMTP id a28so7358714lfr.13 for <40097@debbugs.gnu.org>; Tue, 17 Mar 2020 21:43:46 -0700 (PDT) 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:date :message-id:mime-version; bh=DyddxuNveChHgFJ20adIxGje/75bPJZxVj4ddLmSOYY=; b=nJgVBHidbk/EgmuGywRgwwe0WgNaenSiEB3ug2JP5YVP7Nfw0Bj1TStGeh22JOQVmr s+3fdOv9LYYnPJXReSNBu/zRnUuWUE5L8S4y61VlIAY7AdIagULs979caX6ZAIzzr/Zn gzMmgRBPZXKAvJl1V0ho0JeOPuuWrbrfkYglGQrrR7coXdQndag2NjcMz17JVbN3t6Zw uLOyJtlN3LTjxtUNqrNwh6Fbk5gXUVJ+9X5SDNVJtgH0G1GiRzFf8xRcAALFNlr8ChHW 5RJro0bscmH/8UCW+YB0yDaYphvjaqj0L9uTbu3qWcYScnnNdj/7rOuzoUA0ZdhR4lnA zQQQ== 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:date:message-id:mime-version; bh=DyddxuNveChHgFJ20adIxGje/75bPJZxVj4ddLmSOYY=; b=PqGfO4H6QUU3DmIMFtlGYfrI/qXBTGoaW9jBvlnGhbS/d9Q/9GYXxQIFQQXN3ky1kD ORreuRHNRFrHygy9NMtL/HRuAQ3EmGeu89rjtbMX6iW2MhXWwzI+NdQ9dXRNgeXy38WX FQzwwrl7u8jh9e9LuduAd2maRSaq9HSfR0b6USBMg2gNMGWC7fqHmx6CQ5a1BdMC1g8c FItgg/v0xZn/oiDLaHToxSuwSTF5ZMtatI5CQY1O45zdxv1VYPn2tx+9CP3f5ykG2aYn zcNAeXi1S7iQJn1PUkCmvotR95YIepIcLAVypucQmNSXITMgBbZ95F7XMfehTPfOA5/K dlWQ== X-Gm-Message-State: ANhLgQ1hGHw9JibKCocDt2UIllH/RDcueGhVF2v4jpP4hnRNHOWs0ERO WDsTLVUx6wlsDlkzx614eTYqaz4I X-Google-Smtp-Source: ADFU+vucRyZPNkH3xD3gClvMz6LBZqKwJQJWMM0XKasB0heQfPWeIAkbLtsBbf9ZmuIxBWHsmC+7bg== X-Received: by 2002:a19:4b53:: with SMTP id y80mr1636014lfa.77.1584506620522; Tue, 17 Mar 2020 21:43:40 -0700 (PDT) Original-Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id w22sm3498965ljm.58.2020.03.17.21.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 21:43:39 -0700 (PDT) In-Reply-To: <83wo7jey86.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 17 Mar 2020 18:35:05 +0200") 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:177475 Archived-At: Eli Zaretskii writes: >> From: Sergey Organov >> Cc: 40097@debbugs.gnu.org >> Date: Tue, 17 Mar 2020 19:12:33 +0300 >> >> > Can you show all the fonts on your system that have microsoft-cp1251 >> > as their registry/encoding? AFAIK, this is done with xlsfonts. >> >> Sure: > > So there's a single font, Terminus, which supports that charset. I > think you can work around this problem locally by adding that font to > face-ignored-fonts. Yeah: (setq face-ignored-fonts '(".*-cp1251$")) does the trick for me indeed, thanks! > We could perhaps introduce a customizable variable that would allow > users who want that to disable the preference of charset-supporting > fonts when the text has the 'charset' property. CC'ing Handa-san who > could comment on how important is this feature nowadays. When I wrote original question, I was sure I've read somewhere in the docs that Emacs does prefer fonts with particular encoding, and then I missed it and can't find it anymore. I wonder if it is even documented, or did I read it somewhere else, maybe in some relevant discussion? I mean if it's even undocumented and is not important nowadays, maybe it's indeed better to drop it rather than bother with customizations. And if it is to be customizable, it should probably be a fontset feature rather than global? Thanks, -- Sergey