From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Adding icon sets to Emacs -- and next steps for icons.el Date: Wed, 24 Aug 2022 00:20:59 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37208"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 24 09:32:23 2022 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 1oQksA-0009To-9C for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Aug 2022 09:32:22 +0200 Original-Received: from localhost ([::1]:60236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQks9-0002w2-8d for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Aug 2022 03:32:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQkhC-0003JE-4d for emacs-devel@gnu.org; Wed, 24 Aug 2022 03:21:06 -0400 Original-Received: from mail-ua1-x929.google.com ([2607:f8b0:4864:20::929]:37622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQkhA-0004t1-Lh for emacs-devel@gnu.org; Wed, 24 Aug 2022 03:21:01 -0400 Original-Received: by mail-ua1-x929.google.com with SMTP id e3so6401736uax.4 for ; Wed, 24 Aug 2022 00:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc; bh=H2+d5TmwWalVIXtZBGNAxGHML5t9eN9CYI6WxoGsdqU=; b=ZgajDx1oqNLakfwz53LbTXqpr1kLi8xegUzENXnwbcvQewtZLEEpX5Zg2G1gvlyNhr Geh5cdX/N+WdLfpjNLWcOPtCUTv8S01G1/7iyhZa5nOW8Hy3Pa4R1MiU3BCeDp/A/nfU o/LVh3IOXzxcHgS13CGqhuHrjeOHId1ie8R4L0W2eYb8HNwfC1X1PQFKW72YnAMGU1S0 LGLcX5gYdrrBuHJeqxoXPt01bKHQve8zVLTcrE8jx1WhI3gBegCSoFA0DQ9QpQaqOCcT PvG954PovXMKj58fcU9889OPf2MnGanfhoSDxYlRASUv3zjXQxMFvlq9qsBx3GX8nTdW W25Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc; bh=H2+d5TmwWalVIXtZBGNAxGHML5t9eN9CYI6WxoGsdqU=; b=fPcFHm3AAVZidqcnYB0farwlAz2zMHvW3w1IhpMMKR939zK62K2SUELbidp2h6g5nV rxAOP8HucJfrLyDiP5cNuFMslJecTlipAt/oWvBQoaR6m6o6pLQH+6ZdJmRh/2eCUSD4 XLDvef9lCu1xeJQ2Vtf/AryppOXyOcXeYXRl25JT68HigflEp06VzwIk9sBAk3iPPUVc 3VGG7wKKDQADPqwAwc8Vh6GmM/Hhstuic8SnqMbRHo/1VNO1XVV7zn+UKd7hJ1PApglV PhTOKQ3RZn4SzrznhufokgMRQphz0+Czv9c4du0FH86y6cYVWOUWil4zZg5sp0bep65u TagQ== X-Gm-Message-State: ACgBeo1QfFHSckpLS2giUGs5BatsfHKNsr4Y2zSnjuwoVnA3k0PUbSaE 28yZY6NWYaoYc+aJBUM3sTSk+cywsWGDZ7lu52RyUvbZ X-Google-Smtp-Source: AA6agR7xEn93rlhIwpPRa8buTqFP884dfrNBLtBMkn7zO/zGYTxZbPk4xvFZw9Deg1QMFSm1tGO1FC3sLvT89+3nb4o= X-Received: by 2002:ab0:388f:0:b0:39c:5f13:7785 with SMTP id z15-20020ab0388f000000b0039c5f137785mr9693120uav.115.1661325659578; Wed, 24 Aug 2022 00:20:59 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 24 Aug 2022 00:20:59 -0700 In-Reply-To: X-Hashcash: 1:20:220824:emacs-devel@gnu.org::WZk+Ksop5yZhUg8z:75wR Received-SPF: pass client-ip=2607:f8b0:4864:20::929; envelope-from=stefankangas@gmail.com; helo=mail-ua1-x929.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:293966 Archived-At: Stefan Kangas writes: > I've just pushed the branch scratch/icons with my work from before Lars > merged his icons.el. By the way, I forgot to note some really nice properties of basing this on SVG files: - The icons use the foreground/background of the face at point. We can have different color icons using the same SVG file. - The icons scale with the face at point. Inserting them in a headline gives a large icon, inserting them in normal text gives a small one. In the same buffer. - The icons scale automatically with text-scale-adjust (i.e. `C-x C-+'). - Unlike the external library all-the-icons.el, this does not depend on installing any external font files. With some SVG files, you need to fiddle around a bit to get it to work properly. For example, IIRC you can't set any foreground/background in the SVG file itself. But this is a minor detail.