From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.devel Subject: Re: Ligature support Date: Sat, 06 Nov 2021 14:25:11 +0100 Message-ID: <87r1btwh54.fsf@turtle-trading.net> References: <87cznths5j.fsf@gnus.org> <834k91th5c.fsf@gnu.org> <8ff3b131c5fe09753ca0@heytings.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33110"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 06 14:26:01 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 1mjLhp-0008Q8-04 for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Nov 2021 14:26:01 +0100 Original-Received: from localhost ([::1]:45442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjLhn-00084Z-L7 for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Nov 2021 09:25:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjLh9-0007Nj-Bi for emacs-devel@gnu.org; Sat, 06 Nov 2021 09:25:19 -0400 Original-Received: from odoacer.turtle-trading.net ([93.241.193.16]:39588) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1mjLh7-0006Bi-8O for emacs-devel@gnu.org; Sat, 06 Nov 2021 09:25:19 -0400 Original-Received: from zenobia.turtle-trading.net ([192.168.2.111]) by odoacer.turtle-trading.net with esmtp (Exim 4.80) (envelope-from ) id 1mjLh1-0002C5-TW; Sat, 06 Nov 2021 14:25:11 +0100 Original-Received: from benny by zenobia.turtle-trading.net with local (Exim 4.94.2) (envelope-from ) id 1mjLh1-000cGr-Le; Sat, 06 Nov 2021 14:25:11 +0100 In-Reply-To: <87a6iiimay.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 05 Nov 2021 17:45:09 +0100") Received-SPF: none client-ip=93.241.193.16; envelope-from=benny@turtle-trading.net; helo=odoacer.turtle-trading.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham 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:278867 Archived-At: > Eli Zaretskii writes: >> Or the font could have a ligature for "ffi" -- do we want a variable >> named "efficient" be displayed with that ligature? I'd be surprised. Lars Ingebrigtsen writes: > Possibly, but probably not. But I don't think people will choose to use > fonts for programming that have fonts like that. (Are there even any > monospace fonts that have such ligatures?) But when rendering document > using a variable-pitch font, then yes. That is what font "features" are for, as I understand the concept. I think Emacs supports those already. Features enable or disable stuff like certain ligatures. The user can activate or deactivate features in the font specification to choose which ligatures to use. The idea would be that the defaults are conservative, so I expect monospaced fonts would usually disable most ligatures, but the user can still enable them when and where s/he wants them. Just my 2 cent, benny