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.bugs Subject: bug#47074: Replace XPM icons with Unicode codepoints in customize/widgets Date: Thu, 11 Mar 2021 10:51:19 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23048"; mail-complaints-to="usenet@ciao.gmane.io" To: 47074@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 11 17:57:00 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 1lKOcN-0005r0-0E for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 17:56:59 +0100 Original-Received: from localhost ([::1]:54530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKOcI-0008Gg-02 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 11:56:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKOXa-000399-PY for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 11:52:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKOXa-0006yM-IA for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 11:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKOXa-0004Ox-Gs for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 11:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Mar 2021 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47074 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161548148516871 (code B ref -1); Thu, 11 Mar 2021 16:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Mar 2021 16:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:54742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKOWz-0004O3-9H for submit@debbugs.gnu.org; Thu, 11 Mar 2021 11:51:25 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKOWx-0004Nt-5X for submit@debbugs.gnu.org; Thu, 11 Mar 2021 11:51:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKOWw-0002KX-Sw for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 11:51:22 -0500 Original-Received: from mail-pj1-f44.google.com ([209.85.216.44]:34383) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKOWv-0006kS-76 for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 11:51:22 -0500 Original-Received: by mail-pj1-f44.google.com with SMTP id cl21-20020a17090af695b02900c61ac0f0e9so3484548pjb.1 for ; Thu, 11 Mar 2021 08:51:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to :content-transfer-encoding; bh=ehSW2r7A3xmuS0SY7gkMzSasj27LVDHJt+RIufmJ9aQ=; b=W39ChNZZ97p9Mnk+zc0U7Lzj6Ze0fuvaH2T8YWuTcj8JqPg7SKYRWdjW4UKE8vu95k FlXHhGHT0W0XGHnc4ZZu0XK1ckEbRgp0MTKeoaD5Zt2ozEcZU2bGde2+dRS08hOGuLIL n7vLk3ntxbymgO+HFkIssv8kYOtFiP1Pmchi+VwiFNH8l9MOWxxSiOEuyS297OEjQMsO CzHKvk4OroSE6BpyMyMaEp2IQL5dRXyp+gzAC89xQJUJawKudt9MnJM0Jl0oaAQwlsXs oh/kpwfKNc5OjeHZ3rUTZD04cENAYH99qhODxUvDgg3brX3NxpUJAgt8upd2fO3IoK17 QX7w== X-Gm-Message-State: AOAM530VHpgkyjHUNh1HPleFhWqzQi0ELTT/CLQXOM1N+WxLCRa+RFEi VpEqXi6OlTGq/slEg7n7Bp98MX2ouAYtmIGk0XyqHscHzRg= X-Google-Smtp-Source: ABdhPJy2E+KLmN2ptYKgWZykjXP0wFXOKb3PaDXaeiLk5qECHX9s3zAWcMcFxA3o8LyPM5zh7kxWJ/h43TLqSYJt+sY= X-Received: by 2002:a17:902:74cb:b029:e4:7a16:9925 with SMTP id f11-20020a17090274cbb02900e47a169925mr9087774plt.39.1615481479627; Thu, 11 Mar 2021 08:51:19 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 11 Mar 2021 10:51:19 -0600 Received-SPF: pass client-ip=209.85.216.44; envelope-from=stefankangas@gmail.com; helo=mail-pj1-f44.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.25, 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: 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:202074 Archived-At: Severity: wishlist In M-x customize, we use the etc/images/{un,}checked.xpm and other icons. These images do not scale when you increase the font, and (this is subjective but) generally don't look too good. I think we could get better result if we used Unicode characters like: - =E2=98=91 checked - =E2=98=90 unchecked - =E2=96=BC or =E2=96=BE down triangle - =E2=96=B6 or =E2=96=B8 right triangle I'm less sure about the look of these but they do exist: - =E2=AC=A4 or =E2=97=89 or =F0=9F=94=98 radio button selected (the last on= e was added to Unicode in 2015 and gives the hex square here) - =E2=97=AF radio button unselected 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. (They also obviously scale when increasing the font size.) 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. If we don't think that will produce consistently improved results, we could also just add a new option to use Unicode characters. Thoughts?