From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud 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 17:37:48 +0100 Message-ID: <87wmsbx44j.fsf@ledu-giraud.fr> 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> <87ply4ypjb.fsf@yahoo.com> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35030"; 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: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 14 17:38:39 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 1rP3VO-0008u0-Da for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Jan 2024 17:38:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rP3Ur-0005sA-3z; Sun, 14 Jan 2024 11:38:05 -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 1rP3Up-0005re-Ap for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2024 11:38: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 1rP3Up-0004di-37 for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2024 11:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rP3Uo-0005Gd-AN for bug-gnu-emacs@gnu.org; Sun, 14 Jan 2024 11:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jan 2024 16:38:02 +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.170525027420213 (code B ref 67810); Sun, 14 Jan 2024 16:38:02 +0000 Original-Received: (at 67810) by debbugs.gnu.org; 14 Jan 2024 16:37:54 +0000 Original-Received: from localhost ([127.0.0.1]:44032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rP3Ug-0005Fw-Gb for submit@debbugs.gnu.org; Sun, 14 Jan 2024 11:37:54 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:21585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rP3Ue-0005Fj-55 for 67810@debbugs.gnu.org; Sun, 14 Jan 2024 11:37:53 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=3ovWxRQM leD1vDB5aYgPG/Nmf+xa0j1O3asR5k8tu+E=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=jOq9NtJghp7xj1KW0Siipt0INryJ/D gXgRNI4S4Yy9/9KXxjFMEjo61nl2w65iCQFcCDkH9rEXphIbfF9r6vAw== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=3ovWxRQMleD1vDB5 aYgPG/Nmf+xa0j1O3asR5k8tu+E=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=P1Waj1Rb/fPohRsrSjmy2CYs7mhSCNSXQNoGLG gNCi/+s2gfpv61DcZdOOiyv/Z1boi9eFS4ZYbPic+j9y+9IGXIqstvRN5eTECuwmVNhw9C +qS5DjLgBmvxZPs3+Vn0EC9uCj7clQ3tEPJegZPwc/QAqqUlIVPPhA9X7NFkQQuEWYKwEn lXRP9X0OzoMcor08VaIeUGWjc7q1cFKd8URHV7DI5o8B0f8P3LWPvNY4h9zQFreA/9fOZ0 alnA/YyHD95O7i+H4piPFKgDCx5/4r0yM1UkMxS0F5FPsZmn6be2FM49bxhq8cPDX2VJYs hgGJNAVgxwnrb/zADsRuDQQA== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 96a99f65 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 14 Jan 2024 17:37:51 +0100 (CET) In-Reply-To: <87ply4ypjb.fsf@yahoo.com> (Po Lu's message of "Sun, 14 Jan 2024 22:10:00 +0800") 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:278227 Archived-At: Po Lu writes: > 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. Yes scaled SVG tend to take much space but in the example you gave (zoom in and out of a SVG in image-mode), I think it has more to do with the cache not being adapted for such usage: the fact that an image spec contains its size and is retain for 300 seconds by default (as you said). > 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. Ok but is there such usage of SVG icons into Emacs? If there is it would require a much more smarter cache or, even better, a fast rasterizer. > 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. I've never hit this case but I don't have a high density display. Is it something that happen to you regularly? -- Manuel Giraud