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: Using more and/or better icons in Emacs Date: Mon, 12 Apr 2021 20:25:44 -0500 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="23277"; mail-complaints-to="usenet@ciao.gmane.io" To: Alan Third , Dmitry Gutov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 13 03:26: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 1lW7p8-0005wC-CH for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Apr 2021 03:26:38 +0200 Original-Received: from localhost ([::1]:54962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lW7p7-0001y6-BA for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Apr 2021 21:26:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lW7oK-0001XV-QI for emacs-devel@gnu.org; Mon, 12 Apr 2021 21:25:48 -0400 Original-Received: from mail-pj1-f43.google.com ([209.85.216.43]:37484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lW7oJ-0005bd-4e for emacs-devel@gnu.org; Mon, 12 Apr 2021 21:25:48 -0400 Original-Received: by mail-pj1-f43.google.com with SMTP id e8-20020a17090a7288b029014e51f5a6baso2824414pjg.2 for ; Mon, 12 Apr 2021 18:25:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=G1uAiYxkitOCeQHxtGgZXUEHJOQsI6ykcoVwsdt6j+g=; b=ton7ErMglUDgSP5yakJQXrTmZ3B5o0pLi0KG/qQpoPWgd7yI1LnENiPrYb+BBhmi4d YINNqu/7mmB75IwmqXS3qiWbpcjFVeYieO6G7vpnPyeCuf0My5LFtRacW2+ObLkD0clA qxa9ScgNw1v6eAYJAiJBHHiTwdEkFRzWuF5uMLRz59sZ5z2qq3g7OnGB8x+m7LGEjHH3 BZihzH3xw9YGgwOxNwb2iPM+hvBJUsIf1IPPJqWIFwXN4qQdK1SBOdOkTPF1fn7gHry3 raz8fR/4QwO2erYqKdRhFkD934msRUEvYI+eHEjEtTGfzJm/5SNyUlGZw04h+j8T2IwW d/Eg== X-Gm-Message-State: AOAM530xGR3UFlAq3x5NPb9cMhm/r9qcumxify000H7IN1mIJZKd/Yep 2XzT/dhzQVrpF2F49tyTp012LiKTw/PsL4T/Qu0= X-Google-Smtp-Source: ABdhPJyMVOTTmf4SVokcWJCeKq32admhLdfnv8cQM/Q+B4O0jMPjr8hSBKZg1XMJHbw7A5hYsO+K4hDRwW9uqbx66L8= X-Received: by 2002:a17:90a:4085:: with SMTP id l5mr2166606pjg.104.1618277145255; Mon, 12 Apr 2021 18:25:45 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 12 Apr 2021 20:25:44 -0500 In-Reply-To: Received-SPF: pass client-ip=209.85.216.43; envelope-from=stefankangas@gmail.com; helo=mail-pj1-f43.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:267982 Archived-At: 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'.