From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Using more and/or better icons in Emacs Date: Sat, 10 Apr 2021 01:38:35 +0300 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=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25042"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 To: Alan Third , Stefan Kangas , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 10 00:39:29 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 1lUzmi-0006OU-GM for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Apr 2021 00:39:28 +0200 Original-Received: from localhost ([::1]:39142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUzmh-0004jI-Ew for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 18:39:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUzlx-0004Hh-Oq for emacs-devel@gnu.org; Fri, 09 Apr 2021 18:38:41 -0400 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:37608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUzlv-00026n-St for emacs-devel@gnu.org; Fri, 09 Apr 2021 18:38:41 -0400 Original-Received: by mail-wr1-x430.google.com with SMTP id j5so6061351wrn.4 for ; Fri, 09 Apr 2021 15:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+9cy61hCrzan1P+Yl3Qc9y9q9H1qGR+49zG41pSj5Mo=; b=i6nyTvZoyslejcPULzlT7XFTEuI+us7uucHn3Rp0qJ8IJWkBFAYp2ch5gLpttwdaMk zcZCvKDk80Hu+84o2adHd6R+pPdqKZh94CgRvq9rkZw+DXCZX41XEnREPWd9fcqcY4Vz 3oYkbDiAOFfi441RSr1ShOOt0V0mmIqLn/LfmMSpBf6ik3B6mvjjdSo6RcMa7KYL9Rkl cmykQtUto+dG/aHl5twgi+1BI3CYxKyVjKEBY9LWCko9CidD9gPyJ6Gbhuv4XEtabpIw XamFMGfmVcxRbjXLnoGPinxqkbGVKp656EaXA6ao7eR6vWXrQ6q2GQ2ttIFueQXfqh5j 7Xzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+9cy61hCrzan1P+Yl3Qc9y9q9H1qGR+49zG41pSj5Mo=; b=tWEz7fzfvF0UMBFO/uxsrcr2su9NbfE7IjYiwrA9tjhfQCbyRCeEbxXvw6d5Dlt+OU AHiYJ2UllQM/N/c7RbMgFYArtDuVVVJFLJNiP0CzJlEZaSpjLhE0G1pkjNiapF1VT5Hb p1yG5VmL5vjGHc0pRFsOAFP86Yhl6aYDCwWfg+WRxAaREELj5vQwm1hIxhQoh4P8ckIn jYZCcNl0Zkp1h0b1PfknzQmTgQnHxGX65BQul8g11Ue9y1KmjnsonqlMiXlC1d8/fc98 KVx7qVEHL5BB8b+WurbPm4vKyomzbMLxDRn/3h5ea4/ru4PhTnKuZHel8GvYI/tZ4eKK M1nA== X-Gm-Message-State: AOAM531rvn5vamAs88dK4zihCeWDZ4wkLQOxE+xJUAQ/1vOMDzIccPm4 e61mw4pLaexpWM3b3qPrTat5M+HZg54= X-Google-Smtp-Source: ABdhPJy+eL7GuYHIQIgBRhrKaM5hG/VWi2FHXa/tS3cmk5SUYAnGtyT3tSs+hiEkd7smFFDJ88KYgw== X-Received: by 2002:a5d:4307:: with SMTP id h7mr19566843wrq.227.1618007917996; Fri, 09 Apr 2021 15:38:37 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id d7sm7364841wrw.63.2021.04.09.15.38.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Apr 2021 15:38:37 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=raaahh@gmail.com; helo=mail-wr1-x430.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:267751 Archived-At: On 09.04.2021 22:40, Alan Third wrote: > ... 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. Thanks, Alan. I also found that line height is too much for an icon (it looks much bigger than a text character this way). This algorithm gives a nice result, not far from the size I already picked myself.