From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73363: 30.0.91; CJK Font Rendering Behavior Changed Date: Fri, 20 Sep 2024 20:08:10 +0800 Message-ID: <87jzf61qad.fsf@yahoo.com> References: <86h6ab8uyq.fsf@gnu.org> <87wmj7h90d.fsf@gmail.com> <86setu7sbn.fsf@gnu.org> <87o74i1qoc.fsf@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34738"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: rpluim@gmail.com, tomohisa.kuranari@gmail.com, 73363@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 20 14:09:03 2024 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 1srcRZ-0008na-Vt for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Sep 2024 14:09:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srcRO-0003yb-U7; Fri, 20 Sep 2024 08:08:50 -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 1srcRI-0003yH-Rc for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 08:08:45 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srcRH-00017K-91 for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 08:08:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=A4tfzwZTMC94nm0HLV9qEgmhGBs0hLGt6cYBUY/ileo=; b=CAXytoEmyEDOXf6LUfYGCyjvPinO/sD5wYxvJVuKKYS5OfTiDwPkYe5DxCdd1HzdXY2GQ3zZlpdTHujvI9rawI6cmkap7lxtxqtOOxnEKgm4CjSNO+HMaWltW4eFQZEqa8BuJmz5OgX4AvoXoPkiMD8PFU7HJdeEam65MDug/HBtgyyH/pAHkAXxqiEVq3jnuv7aCbeGZ/ZP4Ztxfx1/SMa18nd/EfGDVXw8zrLuq7nA1pS6PgBO1ncu5plvLCJXgMb/Ek4M56FazNLpgXGKbwOAdRufr4YNpjzENYui4f0Kt1s6hW/n9bz9+4o4KmitLXWw9zNGTxpDjamkvuk2SQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srcRZ-0006QM-Lw for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 08:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Sep 2024 12:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73363 X-GNU-PR-Package: emacs Original-Received: via spool by 73363-submit@debbugs.gnu.org id=B73363.172683412924668 (code B ref 73363); Fri, 20 Sep 2024 12:09:01 +0000 Original-Received: (at 73363) by debbugs.gnu.org; 20 Sep 2024 12:08:49 +0000 Original-Received: from localhost ([127.0.0.1]:34299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srcRM-0006Pn-Ut for submit@debbugs.gnu.org; Fri, 20 Sep 2024 08:08:49 -0400 Original-Received: from sonic304-21.consmr.mail.ne1.yahoo.com ([66.163.191.147]:35655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srcRL-0006Pb-Tl for 73363@debbugs.gnu.org; Fri, 20 Sep 2024 08:08:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1726834103; bh=A4tfzwZTMC94nm0HLV9qEgmhGBs0hLGt6cYBUY/ileo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=g6pEpklJvbPr8BUSNPrib7vXUZZw7488gWppMwE5f4M1719Ktok89T/RUPNLch+IbP7f+M/jroOv3sBeGSx2DooEboFoIzI7VREaFWwdxyE6eClvRJL4MWO5M2NoQc6jg7+c3WuhN8V2g5vssh30w4Sc2JcNcdkKIh0Ach8zydvHy8xcBJlaVrn1WSW8WXfulvwzEDzk8CsY69WnKfXZBGFxZPXsK8XH9s8TxabGxawwlLlDQo7Mo+lnJCGf1IPSM40DVT2BL5GmF274iYx1tkGELyveYVdvqIdNPGupN5/KyDcl6DqDGPWdZZxbW8l7mF5JZbZ6RHebTRoPtLtCaQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1726834103; bh=b3dCqVAEEolcGIpRjRpmnJ9Iw5oO82ZuWpCh3Tx0J0B=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=WLxfIYb/DyLRi9qHLTpTNmEPUtaE+jlq+n0BSxyOr9BSORdMWXq4XXTo3LJy/voCoQTETUdFHIsQ4nW6HypTU55v72+hhdAHOqTt9MOkMtuSgmafLtu7azD9BT2iayfOlpS49XX+rq9EPEeKeqbdFfq5HGUvRkU4kGbBplaqNTo7B5gOxaLtpub5S0QVQt13SeMjgA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: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Fri, 20 Sep 2024 12:08:23 +0000 Original-Received: by hermes--production-sg3-fc85cddf6-lbhm5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b80e6607e81d323f1a1487f1eeb20559; Fri, 20 Sep 2024 12:08:18 +0000 (UTC) In-Reply-To: <87o74i1qoc.fsf@yahoo.com> (Po Lu's message of "Fri, 20 Sep 2024 19:59:47 +0800") X-Mailer: WebService/1.1.22645 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292108 Archived-At: Po Lu writes: > Eli Zaretskii writes: > >> That's the only font-related change I found there, yes. >> >> Regardless of the effect of reverting it, I'd appreciate if Po Lu >> could explain its rationale (and improve the comments with that), >> since the log message and the comments don't say enough for me to >> figure that out. In particular, this part of the comment: >> >> TrueType fonts have contrived character map selection >> semantics which makes determining the repertory at font >> spec matching time unduly expensive. >> >> What does this allude to (details and examples of such contrived >> character map selection semantics, please), and where's the code where >> spec matching becomes expensive without this change? > > Some of our font backends (sfntfont, at least, and perhaps macfont in > this case) will return different registries from that which was > specified in the font spec when enumerating font entities, in order to > enable font specs requesting an ASCII charset also to match fonts with > Unicode as the charset. If cached, these font entities will be > repeatedly rejected in font_find_for_lface after being opened, with > obvious consequences for performance. I forgot to mention that sometimes no charset can be derived before the font object is opened, and in these situations it is best not to cache these font objects at all, if a registry should be specified in the spec, for similar reasons.