From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: High-res Customize icons Date: Fri, 24 Apr 2020 15:05:30 +0300 Message-ID: <83y2ql9jhx.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="63372"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: ndame Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 24 14:06:33 2020 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 1jRx6H-000GOs-DG for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Apr 2020 14:06:33 +0200 Original-Received: from localhost ([::1]:33580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRx6G-000449-EY for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Apr 2020 08:06:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60344) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRx5V-0003Nf-34 for emacs-devel@gnu.org; Fri, 24 Apr 2020 08:05:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51825) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRx5U-00072l-Rj; Fri, 24 Apr 2020 08:05:44 -0400 Original-Received: from [176.228.60.248] (port=3528 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jRx5U-0005p5-65; Fri, 24 Apr 2020 08:05:44 -0400 In-Reply-To: (message from ndame on Thu, 23 Apr 2020 07:14:48 +0000) 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:247693 Archived-At: > Date: Thu, 23 Apr 2020 07:14:48 +0000 > From: ndame > > > It should be straightforward to take a free font family, strip all > > other glyphs, and modify the remaining symbols to make them fit. > > Actually, there is an emacs package already which collects fonts > with free license to provide icons: > > https://github.com/domtronn/all-the-icons.el > > Check out the screenshot, e.g. the mode line at the bottom which looks quite nice: > > https://raw.githubusercontent.com/domtronn/all-the-icons.el/master/logo.png > > It would be nice if emacs shipped with these fonts and actually used the icons at various > places like on the screenshot. Sorry, I cannot say I like this. AFAIU, it uses Private Use Area (PUA) codepoints to produce the icons with a specially-prepared font. But the fonts it provides declare support for portions of Unicode where they have glyphs for only one or a small number of characters. So if this font is installed and available to the Emacs font-selection routines, it will at best make the search for a font slower, and at worst might cause some characters be displayed as boxes with hex codes, although some other font on the system could have displayed that character. I'm especially alarmed to see advice like this: . If you don't see the font family in question in the list of fontspecs (i.e. [-*-file-icons-...]) below the range, or some other fontspecs in front of the one in question, you will have to add the families back to the fontset (scroll to the top to see which one is in effect), or arrange the fontspec order. For example: (set-fontset-font t 'unicode (font-spec :family "all-the-icons") nil 'append) This in effect tells Emacs that the font in question covers the entire Unicode code-space, which is definitely far from the truth. >From my POV, this has trouble written all over it. We have enough font-related issues reported on the bug tracker, and zero people who know this area of Emacs well enough to respond to those bugs efficiently. Using tricks like the above will make a difficult situation much more so, and for no good reason.