From: Po Lu <luangruo@yahoo.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: master 15afa72460b: Fix 'script-representative-chars' for the 'han' script
Date: Wed, 07 Aug 2024 08:17:08 +0800 [thread overview]
Message-ID: <87le19nq4b.fsf@yahoo.com> (raw)
In-Reply-To: <86jzgtq3xz.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Aug 2024 14:35:36 +0300")
Eli Zaretskii <eliz@gnu.org> 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."
>> > IOW, I'm interested to know what happens on GNU/Linux if more than one
>> > font is available that together cover both the "usual" han characters
>> > and those additional ones which you think we should remove from
>> > script-representative-chars, but neither of these fonts supports all
>> > of those characters. Can Emacs solve this by itself on GNU/Linux, or
>> > does it need "help" from the user's customization of the fontset?
>>
>> 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.
> What you describe happens on MS-Windows, but there we don't have a way
> to test whether a font supports a character without actually loading
> the font (the 'has_char' backends method always fails).
next prev parent reply other threads:[~2024-08-07 0:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <172267024373.1752.11669700725951474437@vcs2.savannah.gnu.org>
[not found] ` <20240803073044.42052C1CAF7@vcs2.savannah.gnu.org>
2024-08-03 9:27 ` master 15afa72460b: Fix 'script-representative-chars' for the 'han' script Po Lu
2024-08-03 15:23 ` Eli Zaretskii
2024-08-04 0:16 ` Po Lu
2024-08-04 4:57 ` Eli Zaretskii
2024-08-04 7:58 ` Po Lu
2024-08-05 16:25 ` Eli Zaretskii
2024-08-05 23:58 ` Po Lu
2024-08-06 11:35 ` Eli Zaretskii
2024-08-07 0:17 ` Po Lu [this message]
2024-08-07 11:47 ` Eli Zaretskii
2024-08-07 12:12 ` Po Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87le19nq4b.fsf@yahoo.com \
--to=luangruo@yahoo.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).