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: Sat, 10 Apr 2021 14:48:56 +0100 Message-ID: References: <0279fbc8-74c3-3766-2b26-b3eb933a501e@yandex.ru> 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="22709"; 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 Sat Apr 10 15:51:08 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 1lVE0x-0005on-SQ for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Apr 2021 15:51:07 +0200 Original-Received: from localhost ([::1]:54940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVE0w-0001on-Uw for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Apr 2021 09:51:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVDyz-0000PH-Ed for emacs-devel@gnu.org; Sat, 10 Apr 2021 09:49:05 -0400 Original-Received: from outbound.soverin.net ([2a01:4f8:fff0:2d:8::218]:49829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVDyx-0007bD-2E for emacs-devel@gnu.org; Sat, 10 Apr 2021 09:49:04 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (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 D8170601B7; Sat, 10 Apr 2021 13:48:59 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1618062539; bh=zPMfu7zYWP7dBTp5aIgsgT1KhlasBX//Gj+q5xqpwWc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OPmwbX34vPm/TQ7HXuAvXptSJn5B3udl5YGq6IsE5zm6fbB4mB8pP3maildJbqUrk a71nB7hnCuF4yvBd3OYlsT5u30XnuY6vNIvplvOzMdgRISWl5FI4JL02VzLMIdSN1K YrO95nZRxOhIpVkBJBS97dfbKjCvFSi0y8w3JZcZfplt08bV4NCCShgsdsU8YflqKF SOmmwX/hqlDriZbmKqSgwCqFEUV0QEwgCed5mzGK7xd2gB9XQP4z5Q94ge9VC5y7CS t+jCYYJffjHCsOuR/Ko8PaI2ictVLnxKE6ai13ysqEAMRz2xMnCeBsFQPcLIG9l7wJ spCZzy/SEgHXg== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id E4720202BBD3C7; Sat, 10 Apr 2021 14:48:56 +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:267822 Archived-At: On Sat, Apr 10, 2021 at 05:56:32AM -0500, Stefan Kangas wrote: > But is there anything lacking in Emacs' SVG and/or image support? For > example, it would be very nice to be able to just do something similar > to what you would do with CSS in a browser: give `:height "1em" and have > it work automatically. Is it worth filing a feature request about this, > or are we happy with the state of things? 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. ;) -- Alan Third