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: Fri, 9 Apr 2021 20:40:53 +0100 Message-ID: References: <2f0b4786-d569-27e6-fa8a-fb47bf08b166@yandex.ru> <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="7559"; mail-complaints-to="usenet@ciao.gmane.io" To: Stefan Kangas , Dmitry Gutov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 09 21:42:39 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 1lUx1a-0001sV-Nd for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 21:42:38 +0200 Original-Received: from localhost ([::1]:35970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUx1Z-0007qd-NZ for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 15:42:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUx07-0006xU-86 for emacs-devel@gnu.org; Fri, 09 Apr 2021 15:41:07 -0400 Original-Received: from outbound.soverin.net ([2a01:4f8:fff0:2d:8::218]:50625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUx03-0005lQ-26 for emacs-devel@gnu.org; Fri, 09 Apr 2021 15:41:06 -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 BDA0C601B7; Fri, 9 Apr 2021 19:40:58 +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=1617997258; bh=LXj52pi+kzfWPGNZd2uNJLtGjLYozw8l1V/2p87po9I=; h=Date:From:To:Subject:References:In-Reply-To:From; b=Gc0VAy+islkqGIMy5bNgURgr2HNCClCmtjJnWzuLV+mVCWmigQqBrBCtfZLNlyx5v 9VDqFPPLP6DxrGr3X2yqAQJwNOTyifY8as9xp1EkbyIlPq1wr02bpK5qaqDlUukPUE lDDmRNEMfuBJIjiIld5iqe99jw0ppxnn2wkzJc9yVZqYFPsBYmfcfXxX+qrbOwxgRs skQEhuApe7Z3fQrRi5feVTZUTeeNZA9x8iBH/Il+JXVXotuJ4xfKCpeJRG6LW1fHwg ZFOL5xDkWRnd2GoXr4D33uPxRY9VZRl8KkEN2khcuaXrWitvjafjDZ3MDnfvCnuLQm crgbQpogdbc6w== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id A1E08202BBB79C; Fri, 9 Apr 2021 20:40:53 +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:267748 Archived-At: On Fri, Apr 09, 2021 at 08:30:14PM +0100, Alan Third wrote: > Something like > > (insert-image (create-image "my/svg/file.svg" 'svg nil > :height (line-pixel-height) > :ascent 'center)) > > Although it won't tie in quite as neatly as having the actual SVG > height set to 1em or whatever. ... and if you want the actual text height instead of line height it's more complex, have a look at scale and height in this: https://gist.github.com/alanthird/7b86dc66df1ed3b9006bcd3fddd7350f although there's probably a better way of doing it. -- Alan Third