From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#47074: Replace XPM icons with Unicode codepoints in customize/widgets Date: Fri, 12 Mar 2021 18:25:34 +0000 Message-ID: References: <83a6r9mwgk.fsf@gnu.org> <8335x1mpdk.fsf@gnu.org> <83tupgltmi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32973"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefan@marxist.se, 47074@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 12 19:59:08 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 1lKn07-0008Ss-I4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 19:59:07 +0100 Original-Received: from localhost ([::1]:37688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKn06-0001d7-I4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 13:59:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKmU6-0000W3-IE for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 13:26:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKmU6-00037t-9I for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 13:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKmU6-0004sP-5r for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 13:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Mar 2021 18:26: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.161557354718724 (code B ref 47074); Fri, 12 Mar 2021 18:26:02 +0000 Original-Received: (at 47074) by debbugs.gnu.org; 12 Mar 2021 18:25:47 +0000 Original-Received: from localhost ([127.0.0.1]:58326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKmTr-0004rw-3v for submit@debbugs.gnu.org; Fri, 12 Mar 2021 13:25:47 -0500 Original-Received: from outbound.soverin.net ([116.202.65.218]:42393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKmTo-0004ri-5y for 47074@debbugs.gnu.org; Fri, 12 Mar 2021 13:25:46 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id A9B3360142; Fri, 12 Mar 2021 18:25:38 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1615573538; bh=vkRFang5kbBI5yfiGgFzeyGYJ1ZymrSTVT+BF7X+dvI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AE0HsKFvnX2jckq/zkKkPG0GAQl2HPVxyf86tkLQr+SF76c9oJOzJ6YoYCxgzF5Xw ZmLlf9GPphoPioK9Z84YLPZW8TVrRTWqKu7T11rxkQNjkRGNfK6MFksXAlJraJ5z8O 62/Qoi8GtrjERjkj+W+sUEy2GKkvP4W8ny0z36kRQLtZAnRhVrJCR2uPFuqwrcbcAm 04sMZl36RsE2pi9ElKQSfw47Bh8fpPC2cyTBklD1D1vvyqCFk7os/R6WJbRa0MsKuq N5/i2VlcrIMBq1Ph4+F+56WG/Vgx4eKfsKDFk82LuxU+6yQaLVl2U7AlJVooMGXFi4 RJukTckCBOv5A== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id BED35202AE9EE2; Fri, 12 Mar 2021 18:25:34 +0000 (GMT) Mail-Followup-To: Alan Third , Eli Zaretskii , stefan@marxist.se, 47074@debbugs.gnu.org Content-Disposition: inline In-Reply-To: <83tupgltmi.fsf@gnu.org> 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:202184 Archived-At: On Fri, Mar 12, 2021 at 09:27:01AM +0200, Eli Zaretskii wrote: > > 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. It depends. Doing it at the C level means it Just Works for all SVGs. That is if you put unstyled text into any SVG it would appear with the size and font of the surrounding face rather than whatever the librsvg default setting is. Doing it in lisp would require a little more care. > > Alas it doesn't resize the image as you scale with C-x C-+. > > Why not? what is preventing that? Simply that we're inserting an image and to change it we'd have to regenerate it. If it were being done as part of a mode (this bug report is about customize, so in there I guess?) it should be possible to make it fix it. > > 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. No, I was just listing off the different ways I could think of to make SVGs appear more coupled to the text. -- Alan Third