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#67810: 29.1; fonts use synthetic bold on Linux / pgtk Date: Sun, 14 Jan 2024 22:10:00 +0800 Message-ID: <87ply4ypjb.fsf@yahoo.com> References: <0719018bb386e840efaa655b7c0b765ece9cd9ff.camel@timruffing.de> <83le9ys2d3.fsf@gnu.org> <3ebaf489f6dad748258c7fb01d3200b674ebb1f1.camel@timruffing.de> <83h6kmrzkz.fsf@gnu.org> <7ea3f7db448191f2b9886604084abe84d0caaf61.camel@timruffing.de> <83y1dxqm46.fsf@gnu.org> <83le9xqewb.fsf@gnu.org> <87h6klja8c.fsf@yahoo.com> <723b91276f83652bc6867f95630e1057c05ffb26.camel@timruffing.de> <87ttnj2uj6.fsf@yahoo.com> <87jzoc20o5.fsf@yahoo.com> <87y1csz067.fsf@yahoo.com> <875xzwxfzd.fsf@ledu-giraud.fr> 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="6115"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Tim Ruffing , Eli Zaretskii , 67810@debbugs.gnu.org, Stefan Kangas To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 14 15:11:20 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 1rP1Cq-0001ON-1d for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Jan 2024 15:11:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rP1Ca-0000b9-U2; Sun, 14 Jan 2024 09:11:04 -0500 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 1rP1CZ-0000az-8u for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2024 09:11:03 -0500 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 1rP1CZ-0003fL-0J for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2024 09:11:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rP1CX-0007hK-Oe for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2024 09:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jan 2024 14:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67810 X-GNU-PR-Package: emacs Original-Received: via spool by 67810-submit@debbugs.gnu.org id=B67810.170524142429543 (code B ref 67810); Sun, 14 Jan 2024 14:11:01 +0000 Original-Received: (at 67810) by debbugs.gnu.org; 14 Jan 2024 14:10:24 +0000 Original-Received: from localhost ([127.0.0.1]:41948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rP1Bw-0007gR-FS for submit@debbugs.gnu.org; Sun, 14 Jan 2024 09:10:24 -0500 Original-Received: from sonic302-21.consmr.mail.ne1.yahoo.com ([66.163.186.147]:37986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rP1Bt-0007g8-Ev for 67810@debbugs.gnu.org; Sun, 14 Jan 2024 09:10:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705241416; bh=/qeLvtWlKnBlpMI/DNa077TyYS6tBKMBKjv9r//PORA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=CGwQ0FKGxLjfBSPGFJhXsN/5GFrh7R3+C3M/G9ZURLQ75cBJLwfIb+yMTRTXv38wywRII/8yDcY9Z6rJIfoj+T/SmmiNokTKaO44qn7oC9EMH3qlYGq0XfIEcr5ygsvEKp7X3gv/UgeuHXkzAngbEhAR3QrwlgLyn95QzUcJ3KwQzmeVQo/btIK40DSYR38SzUBap+OkPn5NNYw43irC5Hba5bTqrPk2TdRQ77mNsaazQM3EuU0gnDejF/RU3EUqKRXJyrRZY11ZGlVgOilRrmrrpC8czudmwVzQMxdmSNfL9K4SWW2KflZ500x93vmMnEXIzQcrY2TmEgcFG/94dA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705241416; bh=zg9c/IzGUJAM2ZVzuXACLmvbqXKha579pwnDubJBlXD=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=TEv+o1tklhDfHMS2r5HR7haRV/2vLK6eKpeVHgE3PDkUvJ9pYBBV8k6BFLcBOI8xlknO5+vc5IO30CXJPvARwpTGJ4zPdgYoLibcnuQipOK8urgS2bOolsSxNHpbDV+F5e7Bk2KYb/daljM5Jje119oqO163W/t3T2LVuu/t96xye9iwtJmVUtaTLLQpIJ90GkgiHzjLjRnMaWhxAS2eyZsHjZTpFaUye3nDmjKkuM30aheUC3tUOQgMkRz+n04zoo2O6HsCieI4bzG8bexTLbKr7WBp7KIDWTKOkPJnw9o3OtCGaahf5mX3paN1QXS/BHhWxj4w7EolCCbHcoFsOw== X-YMail-OSG: s7EFzogVM1krG7EJiQiPCs6yXJiBd2FJBldVSvY4SuM3JK0Fp2BK4TlliwA6MZU UocpxNf9SUVli0cs911OXTyuqkRiDiJFTZQkhFLOPZuWn9XHbDhdJc5xjese7l90Cs9KGzj0EVko SC0sqU9ql3s6XGbjIVf1mp3.AyabGoW21.o16nP8X8S1ldTGJMabntyZABA0x3afgsEfZTB8DAuP eIBUOq9yN6Bn.gv7fcnJkv4GaitTsE7dtil_KCwTSEtn5Ak7g7whhPXnAkHGOa.eLuKWJd60TkX5 Z9RquLcy9JMNbMdt33dnlzoSKMGsFkOcL97AugufPxqIiu4pss7.cHsW3PZ_Unqpv8CScnUhIpAA CJZG3k3euYmv7e_rejsOxBVK8EnRKTYjUPsNoR2P6K1rJmMtxb9Zfy7pTje1DRVfrBZD.yu8O_Gf y7.bMO..gixTeMixXUo27nHlS6Wk5BxGfDcpYIxNvSDR0io3lApZdTexENo_h364a11Vc7YzSg5o 85Db_uqcehztDAzNx8VR8QO4wfSSS9fL.FiWe5i1mFjCrQw9zsCHIpi1ztmIZbhFL7V4awX2mb5Q j7ShkIqW0hgFHoj0WfYR77VM4sok5GiJ5.W2FjW_yKr85LY50j7M9XrkjS_65g4MaTniTv2rGZ91 fY76Ftsw3cflITUx6I9C2oeqzvdMg2FKnptYv41hBaxWfRWzoYcxaFDOPx3C7.djuqC1_sYWg5GT yOFl_W0hr_6u.KdGBziv6yzXuCGd7BD3pECoKrbq72SXm6tU2hcq71OEA9QIkqaCeEd9q.gByCYW .DCubq72L_Cts53tluNp418xfmX1k9e6dGmx78QD4w X-Sonic-MF: X-Sonic-ID: a1218e3b-54f1-4e91-b382-de079743e674 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Sun, 14 Jan 2024 14:10:16 +0000 Original-Received: by hermes--production-sg3-677476f564-2fwms (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2442269ae283bb57c4982a0757d2429e; Sun, 14 Jan 2024 14:10:09 +0000 (UTC) In-Reply-To: <875xzwxfzd.fsf@ledu-giraud.fr> (Manuel Giraud's message of "Sun, 14 Jan 2024 13:21:42 +0100") X-Mailer: WebService/1.1.22010 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:278212 Archived-At: Manuel Giraud writes: > Yes. As Eli explained to me in bug#68006 (correct me if I'm wrong), the > image cache was designed to work with the display engine (for icons and > toolbars). For other usage, like image-mode for instance, we might need > something else. I understand you haven't made reference to the provisions for user-specified image caches that you have proposed in that thread, but it's still relevant that although such provisions will work in image-mode's favor, they cannot resolve the memory consumption problems inherent in the practice of caching scaled SVG images in the first place. Or on the flip side, performance degradation incurred by calling into SVG for many dozens of small icons, which are removed from the image cache after the eviction delay elapses without regard to their size or the frequency at which they are invoked. Worse yet, the display connection is cut when the image cache consumes all bitmap memory allotted by the X server to Emacs. This generates an asynchronous Alloc error that Emacs is not in a position to detect until it next returns to the event loop. With the size of images as they exist today, and the density of the devices on which they are displayed, I think that caching complete images for N number of seconds has become an outmoded solution for not loading images redundantly. It's unpleasant for increasing doc-view-resolution to force you to hold your breath before typing "n" in a DocView buffer, out of a sense of apprehension that the subsequent page might be sufficiently large to trigger such an error.