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.bugs Subject: bug#47074: Replace XPM icons with Unicode codepoints in customize/widgets Date: Fri, 12 Mar 2021 09:27:01 +0200 Message-ID: <83tupgltmi.fsf@gnu.org> References: <83a6r9mwgk.fsf@gnu.org> <8335x1mpdk.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9913"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefan@marxist.se, 47074@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 12 08:28:14 2021 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 1lKcDV-0002Sz-S4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 08:28:13 +0100 Original-Received: from localhost ([::1]:43614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKcDU-0007BL-VP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 02:28:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKcDK-0007Aj-Qq for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 02:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKcDK-0008Ro-Iz for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 02:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKcDK-0004lj-En for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 02:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Mar 2021 07:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47074 X-GNU-PR-Package: emacs Original-Received: via spool by 47074-submit@debbugs.gnu.org id=B47074.161553403218269 (code B ref 47074); Fri, 12 Mar 2021 07:28:02 +0000 Original-Received: (at 47074) by debbugs.gnu.org; 12 Mar 2021 07:27:12 +0000 Original-Received: from localhost ([127.0.0.1]:55883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKcCV-0004kb-Vr for submit@debbugs.gnu.org; Fri, 12 Mar 2021 02:27:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKcCT-0004kN-Gf for 47074@debbugs.gnu.org; Fri, 12 Mar 2021 02:27:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54965) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKcCN-0007r6-Ix; Fri, 12 Mar 2021 02:27:03 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4105 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lKcCK-0005ct-Me; Fri, 12 Mar 2021 02:27:02 -0500 In-Reply-To: (message from Alan Third on Thu, 11 Mar 2021 23:49:54 +0000) 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" Xref: news.gmane.io gmane.emacs.bugs:202141 Archived-At: > Date: Thu, 11 Mar 2021 23:49:54 +0000 > From: Alan Third > Cc: Stefan Kangas , 47074@debbugs.gnu.org > > I've been thinking about this, and assuming we can extract the font > name and size from the face in C then we can create a default CSS > stylesheet that should make 1em in an SVG equivalent to the actual > Emacs font height. The font details can be accessed from Lisp as well, if that's more convenient. > Alas it doesn't resize the image as you scale with C-x C-+. Why not? what is preventing that? > Perhaps there is some way to mark certain SVGs as part of the UI and > regenerate them? > > Yet another alternative is to define a different text property (or > whatever) that only draws SVGs, but on the fly so there's no caching > and we can put them anywhere in the frame. But that might not be a > good idea. if these two paragraphs explain why the images currently don't resize with the text scale, I don't think I follow the reasoning. Please elaborate.