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.devel Subject: Re: Using more and/or better icons in Emacs Date: Tue, 13 Apr 2021 08:35:00 +0100 Message-ID: References: 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="5645"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Dmitry Gutov To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 13 09:37:20 2021 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 1lWDbr-0001Kq-Hb for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Apr 2021 09:37:19 +0200 Original-Received: from localhost ([::1]:37296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWDbq-0001LA-Gz for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Apr 2021 03:37:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWDa7-0000CM-Cw for emacs-devel@gnu.org; Tue, 13 Apr 2021 03:35:32 -0400 Original-Received: from outbound.soverin.net ([2a01:4f8:fff0:2d:8::218]:47167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWDZt-0002qz-NY for emacs-devel@gnu.org; Tue, 13 Apr 2021 03:35:29 -0400 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 E46AA6013B; Tue, 13 Apr 2021 07:35:09 +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=1618299309; bh=l1TjYFMKXwKbKQc23OacMG9OGobEcvC+VdMaKiIpOsk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z6WHF26LuctOezMJdkLh6zypjDzxnJG8iRDEHb7vo7jTAxlmDi8KiBlpx1eflGCVl GaUL4W6VSYOitq9u5R2HDKVnYTN6Tl7MxgKTsocGfdWJ1Y2uULh2d2AvkTpuF6q7+Y 0mDFQodx0buqBUOySGBY2KvCaiWZdPJAK/nAs26raRs11Qt8+umTpr7Reg4cKb5H6y ZcyauXX99O710tUNNm5y0NgSCFdZq6tET/m6j01w8GQJN9q/U2CQC9ZUb9m2Cr1zyf JdOEzwWJiP+kPeSkcQSLAQAjNoLpjpmxLlFlLVEwVA4MdMiUre76fLZA4UsJh1yF7b Gre36xV4oE8AQ== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 1CEDC202BC3CAD; Tue, 13 Apr 2021 08:35:00 +0100 (BST) Mail-Followup-To: Alan Third , Stefan Kangas , Dmitry Gutov , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2a01:4f8:fff0:2d:8::218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:267993 Archived-At: On Mon, Apr 12, 2021 at 08:25:44PM -0500, Stefan Kangas wrote: > Alan Third writes: > > >> I don't see any reason why we couldn't support CSS style units. At the > >> point that we're creating the image we have access to the complete > >> face information so it would be fairly simple to convert things like > >> '1em' to a number of pixels. > >> > >> Although maybe we'd like to make it a bit more lispy and do something > >> like ":height '(1 . em)". It's easier to parse in C. ;) > > > > See attached. > > Wow, this is very useful. It works great. Thanks! > > The only issue I see is that, unless the original SVG also has height > and width 1em, it doesn't seem to automatically resize images on > `text-scale-adjust'. Hmm, it works fine here... Even with XPMs... Can you show me what exactly you're doing? -- Alan Third