From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47074: Replace XPM icons with Unicode codepoints in customize/widgets Date: Thu, 11 Mar 2021 19:28:11 +0200 Message-ID: <83a6r9mwgk.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28270"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47074@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 11 18:39:22 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lKPHK-00078d-8g for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 18:39:18 +0100 Original-Received: from localhost ([::1]:47992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKPHJ-0008Ou-7X for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 12:39:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKP7N-0007I3-TB for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 12:29:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43259) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKP7N-0003Qu-M5 for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 12:29:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKP7N-0005Kv-Il for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 12:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Mar 2021 17:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47074 X-GNU-PR-Package: emacs Original-Received: via spool by 47074-submit@debbugs.gnu.org id=B47074.161548370820473 (code B ref 47074); Thu, 11 Mar 2021 17:29:01 +0000 Original-Received: (at 47074) by debbugs.gnu.org; 11 Mar 2021 17:28:28 +0000 Original-Received: from localhost ([127.0.0.1]:54805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKP6p-0005K9-Q2 for submit@debbugs.gnu.org; Thu, 11 Mar 2021 12:28:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKP6n-0005Jq-Fb for 47074@debbugs.gnu.org; Thu, 11 Mar 2021 12:28:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48341) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKP6f-0003Bz-9b; Thu, 11 Mar 2021 12:28:18 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4377 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lKP6c-0000jn-AC; Thu, 11 Mar 2021 12:28:16 -0500 In-Reply-To: (message from Stefan Kangas on Thu, 11 Mar 2021 10:51:19 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202081 Archived-At: > From: Stefan Kangas > Date: Thu, 11 Mar 2021 10:51:19 -0600 > > Obviously how these look depends on the fonts you have installed. On my > machine, the "Fira Code" font is used, which makes them look very good. Exactly, so depending on a font to produce good results is not necessarily a good idea. > Perhaps we could prefer Unicode icons if they are available, and fall > back on icons if not. It seems like we can use `char-displayable-p' to > see if there is any font that can display that codepoint. char-displayable-p is expensive, though. And it does nothing against the not-so-pretty fonts, of course So I generally find the idea of using characters for this purpose problematic; we've seen these problems in other places in Emacs. Why not use SVG images instead?