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: Mechanism to scale SVG images when default face height changes? Date: Mon, 18 Sep 2023 20:53:09 +0300 Message-ID: <83bkdze5bu.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26269"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Jimmy Yuen Ho Wong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 18 19:53:51 2023 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 1qiIRS-0006e7-2B for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Sep 2023 19:53:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiIQq-0002RN-7j; Mon, 18 Sep 2023 13:53:12 -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 1qiIQo-0002RD-Rp for emacs-devel@gnu.org; Mon, 18 Sep 2023 13:53:11 -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 1qiIQo-0001Nz-Jh; Mon, 18 Sep 2023 13:53:10 -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=v03nElRolpO2Xg1/YbUuaX/ylx/4D6Ue4eB3p+1AM7E=; b=G1Yb6Np/QH3Q jGY5mEj1PnXomUIxwsyeWIQ8zpzLEj4XJMP5kcBVjrLrM/1EWre++OYtMbwln82RtfbliRutVMA18 FAa4nrN41JqOdDiq41PyPZ+E3Heu4SVxrw74LYiNnn+PyHze5EM0o1vXlmh58saTVNyV/n3r6QI12 bZvAcUUsIEhCBHDjY+cQWLyMZT/uHWRDlkPHVRfsDR9mZdhk2gMn1xM4rh3gmQG2g0t+Ms0Eabaqb /VgB4+MwQ5ILSYnEkqgyx4oFmPl0c2SekjznC0Lun5+Kp4ZPTFlE3EED+RwYhvEFJz67UaMb2+WkU WiziMx31t73nQip/Zw7GKg==; In-Reply-To: (message from Jimmy Yuen Ho Wong on Mon, 18 Sep 2023 18:42:33 +0100) 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:310714 Archived-At: > From: Jimmy Yuen Ho Wong > Date: Mon, 18 Sep 2023 18:42:33 +0100 > > As far as I understand, simply adjusting the scale factor of the image will suffice. The problem is, > since Emacs doesn't do it by itself, I don't really know how to do it in Elisp and be performant. Are > there any hooks or internal undocumented functions that I can use to scale all the images in all of the > frames when the default face size changes? Are you aware of the function image--change-size?