From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 15afa72460b: Fix 'script-representative-chars' for the 'han' script Date: Wed, 07 Aug 2024 14:47:51 +0300 Message-ID: <86cymko8pk.fsf@gnu.org> References: <172267024373.1752.11669700725951474437@vcs2.savannah.gnu.org> <20240803073044.42052C1CAF7@vcs2.savannah.gnu.org> <8734nmq7ls.fsf@yahoo.com> <86cympvdej.fsf@gnu.org> <87le1dp2gb.fsf@yahoo.com> <86y15bos1w.fsf@gnu.org> <87sevio729.fsf@yahoo.com> <86jzgtq3xz.fsf@gnu.org> <87le19nq4b.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21012"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 07 13:49:40 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sbfAh-0005Hy-Fq for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Aug 2024 13:49:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbf9l-00080A-E1; Wed, 07 Aug 2024 07:48:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sbf9N-00076l-KJ for emacs-devel@gnu.org; Wed, 07 Aug 2024 07:48:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sbf9L-0004DV-MJ; Wed, 07 Aug 2024 07:48:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xIESvC7nYWrdkEJgoJ6Jh23WSxInZq870Kc+hbE1N7s=; b=CrczUB7rhp6N G7ODeUAC5OkPmLjqH8vZXT6DWGcXW9BNS96H/BZNmvNRyqo5tCaMmVv5J1jlNOEdrGrdLSqcGDLgr IPAIqhoVk4fZH5+Q8QDJ60XyMwK4KD0gvXCN1QqSs4prICU6/yS2yZr8Rk9obxwPb16j0EM3owHGd eaLqHeuH9c90NW27+JsLb9BSjy/W5RWOKMPB4jgtM9+4A6ZL8wvMNEMw2imYWSnaWVusmlrtSMocT EiLebtPrcULy3ROTWH60XzCNOdqa/kC2dOuQhdidAV/F465N3Nt6IyEMm9TfK9gZyfXs9zVEc5X5d HaFgvbcSQ0o+gg/kR6VSxA==; In-Reply-To: <87le19nq4b.fsf@yahoo.com> (message from Po Lu on Wed, 07 Aug 2024 08:17:08 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322498 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Wed, 07 Aug 2024 08:17:08 +0800 > > Eli Zaretskii writes: > > > Note that I said "if you remove those characters". > > > > If you did note that, then does it mean when U+2F75 needs to be > > installed and the current font for han doesn't support it, Emacs will > > never try to look for _another_ font which supports han characters? > > Or will it try, but always fail? > > How do you mean? During Emacs's search for a suitable font, it is yet > to decide what is the "current font for han." I mean the following scenario: . start Emacs . type some common han character, which will be displayed by a font that supports the common han characters . type some rare han character, such as U+2F75, not supported by the font chosen in the previous step I'm asking whether Emacs will in step 3 search and find a font which can display U+2F75, or will it show tofu because it already has a han font, and that font doesn't support U+2F75? > >> Probably the latter, unless `han' is divided into scripts for > >> characters, obsolete characters, radicals, and the like. > > > > That is again quite disappointing, since I always thought font > > backends based on Fontconfig can do a better job, because (AFAIR) > > Fontconfig caches the font information and makes it available for > > programs that search fonts covering specific characters. > > Fontconfig is capable of this, but not telepathy. If Emacs submits > multiple requests for such and such a list of characters, ftfont cannot > telepathically deduce that in the one instance it should only consider > those characters which are in common usage, while in the other radicals > or obsolete characters. But when Emacs actually needs to display one of those rare characters, will Emacs which uses Fontconfig then be able to find a suitable font, if it is installed?