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: Ligatures Date: Sat, 23 May 2020 16:10:31 +0300 Message-ID: <83o8qeztiw.fsf@gnu.org> References: <20200517165953.000044d2@web.de> <83mu6481v3.fsf@gnu.org> <75a90563-51b4-d3b8-4832-fc0e2542af0d@gmail.com> <83blmi7hys.fsf@gnu.org> <837dx55qff.fsf@gnu.org> <834ks95cmz.fsf@gnu.org> <4faa291f-f2df-36d1-73d5-332b93a9b6d8@gmail.com> <83wo544hx5.fsf@gnu.org> <831rnc43ih.fsf@gnu.org> <83ftbs2jr5.fsf@gnu.org> <83lflj16jn.fsf@gnu.org> <83eerb145r.fsf@gnu.org> <831rnb0zld.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="22362"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpitclaudel@gmail.com, alan@idiocy.org, pipcet@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 23 15:10:54 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 1jcTvR-0005jV-Px for ged-emacs-devel@m.gmane-mx.org; Sat, 23 May 2020 15:10:53 +0200 Original-Received: from localhost ([::1]:50786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcTvQ-0003Wb-TS for ged-emacs-devel@m.gmane-mx.org; Sat, 23 May 2020 09:10:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcTv0-00032t-6U for emacs-devel@gnu.org; Sat, 23 May 2020 09:10:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42817) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcTuz-0003fU-SN; Sat, 23 May 2020 09:10:25 -0400 Original-Received: from [176.228.60.248] (port=2522 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jcTuz-0001tr-5a; Sat, 23 May 2020 09:10:25 -0400 In-Reply-To: (message from Stefan Monnier on Sat, 23 May 2020 08:47:57 -0400) 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:251270 Archived-At: > From: Stefan Monnier > Cc: Pip Cet , cpitclaudel@gmail.com, alan@idiocy.org, > emacs-devel@gnu.org > Date: Sat, 23 May 2020 08:47:57 -0400 > > I wonder how it is supposed to work and it works in other applications: I have no idea. If someone does, it would be good to hear the details. > Do current applications use a heuristic like "ligatures won't reduce the > size by more than a factor 2, so estimate the lower bound on the final > size to be at most half of what the font metrics say", so they will send > up to twice as much text to be shaped as needed, and then they throw > away the left overs? As I wrote elsewhere, HarfBuzz developers actually prefer to see the entire paragraph, not just screen line, because some shaping decisions depend on that. Not sure what the other applications do about that.