From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Ligature support Date: Fri, 12 Nov 2021 12:28:26 -0800 Message-ID: References: <87cznths5j.fsf@gnus.org> <83mtmtru6l.fsf@gnu.org> <8ff3b131c57f741d04e5@heytings.org> <83lf2drqx6.fsf@gnu.org> <87lf2c3k0z.fsf@gnus.org> <83wnlwqocq.fsf@gnu.org> <87wnlwyox9.fsf@gnus.org> <83lf2cq7n5.fsf@gnu.org> <87wnlnkxbo.fsf@gnus.org> <83cznfdohr.fsf@gnu.org> <87zgqik9bk.fsf@gnus.org> <83v916d64z.fsf@gnu.org> <878ry2k6qz.fsf@gnus.org> <83tugqd488.fsf@gnu.org> <87zgqiiq8c.fsf@gnus.org> <83r1bud3or.fsf@gnu.org> <87r1buipf5.fsf@gnus.org> <83o86yd0ig.fsf@gnu.org> <87a6iiimay.fsf@gnus.org> <83fssact8i.fsf@gnu.org> <87k0hmgre3.fsf@gnus.org> <87pmrdamcw.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000014aedc05d09d4e9e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9012"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , EMACS development team To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 12 21:29:26 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 1mldAr-00025a-Em for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Nov 2021 21:29:25 +0100 Original-Received: from localhost ([::1]:42320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mldAq-0001mA-0j for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Nov 2021 15:29:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mldAE-00016Z-Br for emacs-devel@gnu.org; Fri, 12 Nov 2021 15:28:46 -0500 Original-Received: from [2a00:1450:4864:20::12a] (port=44695 helo=mail-lf1-x12a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mldAC-00066B-OS; Fri, 12 Nov 2021 15:28:46 -0500 Original-Received: by mail-lf1-x12a.google.com with SMTP id y26so25119475lfa.11; Fri, 12 Nov 2021 12:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=du3MqjhbGqj6viFYIn1c3c0QAfIzOLoogq171UBxOxk=; b=GobqEu124pf7dsGBEBPxEQ9vOhlpQtkaluhLX6jzUpi4aCyj/9+Awx/jy91NfqQEQH CyiPabrvUrS42+BRmMOr7VjFJba3Vo8DjYh8yk7ROxlgtWKsaACQ/JJ0qeJiWn34cVgg e++qdCU4zscKwJLoQ+cSDkvWslKLph2DcVNWDFtdgVlPMa9sD7iYlPlWCfyqHpJro1nN rwmvgEQhjYq4D/rZQP0jeqeUb/Kodum7nE8W8MKNmGfFZERkYJcufrmDxID9r28QB2ss QC7mp9/xV60AU7rQyFxEnqe9GRKN/jbeBsiHN+ng7kN6sOW1HQXSJubfDwAIanswAEzF gyIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=du3MqjhbGqj6viFYIn1c3c0QAfIzOLoogq171UBxOxk=; b=BRFfq+bZL4RhR63vcr3oZQVi/D36IilzPYvpMolmtkpAyTElQSdL1Q6aR9hRyF7gqj 6tjoQItJ1uK0Cf3KhhG/zbYAppE3F3QWQPb2Kh7akLjiFGC2mFRGx/+wNUYkDoSHdVnv US87oCS2csgUKYVa6rrXxft108QqgEu7qx6WSTAG3qGI5WOnhlcwBFPPdVFTOFQyvq1R 8IC1ZARqzGpEd/5x/uDlI721VcBhBhoxi8ZcItt4NGf7nK/K+aH8B9xAnsPD6mMukovx pYJRA3aPea85FzVba4FmxU/AJ0DNhgbDPWnlIEd7ah38fUzleOIJe4RmRR4zvRZZzQOF kCMw== X-Gm-Message-State: AOAM532yWPwVlIZvugkPSR5Dryti4ekePziGIFKYVArze7Xlnb6coNrh AmyR77mJcKuhEvbAlTA4mlzTatisblKasG/kS6k= X-Google-Smtp-Source: ABdhPJy+N7rCtOdfY19uBO0fm7nTGSykyYxbPYFT5a04Nnd1X0fptwzKMvZZmjnNzwi6NAVpdA/7+WNvXn/rUpQISG8= X-Received: by 2002:a05:6512:3195:: with SMTP id i21mr16450231lfe.50.1636748921973; Fri, 12 Nov 2021 12:28:41 -0800 (PST) In-Reply-To: <87pmrdamcw.fsf@gnus.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=yandros@gmail.com; helo=mail-lf1-x12a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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.29 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:279295 Archived-At: --00000000000014aedc05d09d4e9e Content-Type: text/plain; charset="UTF-8" On Fri, Nov 5, 2021 at 10:24 PM Lars Ingebrigtsen wrote: > [...] A typical user won't be loading more than a handful of fonts, > so the number of ligatures at any point won't be more than a few > hundred. > I don't know if you're familiar with this or not, but there's a popular bit of "eye candy" for emacs called all-the-icons: https://github.com/domtronn/all-the-icons.el This package (and it's helpers) adds a bunch of icons to emacs in various contexts (mode-line, dired, completions, etc.). It gets those icons from several fonts (currently: the file icons from the Atom editor, the FontAwesome icons, the GitHub "Octicons", Google's Material Design icons, and a set of weather icons maintained by a group on github). Most of these fonts are created and maintained with an eye towards use on the web, but all-the-icons packages them up for easy-ish use by emacs. Aside: I recall that some people dislike this approach to bringing icons into Emacs as a hack, which it undoubtedly is. Until something like Stefan Kangas' icons.el project bears fruit, it's difficult to imagine an alternative that will provide a reasonable number of easily-scalable icons of the sizes desired by most of the users of all-the-icons. I bring this up because most of these fonts have ligatures, and they seem to be using them for various "special effects" that I could imagine wanting to use inside Emacs, and also because when I use this package inside emacs, I don't see those fonts listed in list-fontsets, so it's possible that they might also be "hiding" when you check to see how many fonts might be scanned by harfbuzz. ~Chad --00000000000014aedc05d09d4e9e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Fri, Nov 5, 2021 at 10:24 PM Lars Inge= brigtsen <larsi@gnus.org> wrote= :
[...] A typica= l user won't be loading more than a handful of fonts,
so the number of ligatures at any point won't be more than a few
hundred.

I don't know if you're= familiar=C2=A0with this or not, but there's a popular bit of "eye= candy" for emacs called all-the-icons:


This package (a= nd it's helpers) adds a bunch of icons to emacs in various contexts (mo= de-line, dired, completions, etc.). It gets those icons from several fonts = (currently: the file icons from the Atom editor, the FontAwesome icons, the= GitHub "Octicons", Google's Material Design icons, and a set= of weather icons maintained by a group on github). Most of these fonts are= created and maintained=C2=A0with an eye towards use on the web, but all-th= e-icons packages them up for easy-ish use by emacs. Aside: I recall that so= me people dislike this approach to bringing icons into Emacs as a hack, whi= ch it undoubtedly is. Until something like Stefan Kangas' icons.el proj= ect bears fruit, it's difficult to imagine an alternative that will pro= vide a reasonable number of easily-scalable icons of the sizes desired by m= ost of the users of all-the-icons.

I bring this up= because most of these fonts have ligatures, and they seem to be using them= for various "special effects" that I could imagine wanting to us= e inside Emacs, and also because when I use this package inside emacs, I do= n't see those fonts listed in list-fontsets, so it's possible that = they might also be "hiding" when you check to see how many fonts = might be scanned by harfbuzz.

~Chad
--00000000000014aedc05d09d4e9e--