From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Ligature support Date: Sat, 06 Nov 2021 06:23:27 +0100 Message-ID: <87pmrdamcw.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24776"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 06 06:25:29 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 1mjECm-0006DW-IF for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Nov 2021 06:25:28 +0100 Original-Received: from localhost ([::1]:35370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjECk-0000e9-Ha for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Nov 2021 01:25:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjEB1-0008O6-4N for emacs-devel@gnu.org; Sat, 06 Nov 2021 01:23:39 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:37510) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjEAx-0007Lt-HC; Sat, 06 Nov 2021 01:23:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=18tXrI9so+BrUZTM8d0nDxhScZYJsIEqaQnIxh9ponE=; b=cIdiNbR74AFdxNZqmK+heAOHay Ki+jjxm4aDbK9usIN9CkyvU+tmOgIqXoPhrrlHs+DgRoAg4Are93aFT2W1IUfi6/f68lyHjghjjPi xV+BsgJ4kuaNhyg7e9Zp0fmAxCg0hGBPU6KfjXxTms0Bfe6sfEarCgL2C4Sa9GqHayQo=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mjEAr-0003KF-Mi; Sat, 06 Nov 2021 06:23:32 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEWxr6qEgXteXFf/ ///RGfwZAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+ULBgQUAYZGAUMAAAGMSURBVCjPVZIxbtwwEEUZ IOvC1RbRAlafYnUKuZBrCdAfQKy2sIyIp8gR5CAksKy28AjmnDIzq8YhIEBP5HzO/yPnvq5D+wWa svgS4oyx6l0tsojAlkIW0DYaHF3DFJGivo+9azaSGX8PVYfWNamETAw844eqpWuhacK6XPSYiAc8 pFxcRVHE6gPfXCMiaSaF3N5BysN1K59uB2EE+X10ZybtJiB8uKOrk25k4W1tFdg6/Shbf1qtJujB 8KtZnVooUNhuj1G7VvA+5/4UzVyEpFzaar6oADwzC6JXP9Frken/0XY2zyAS/hlXV6MQpid6A17d kyRhGSiARhXwsWhAGotKRzXJ06wxmFrIeu87lUEhSRDuKn/F7pQjvkHed6eWB7i/Q47LCyDYAcsj JrKsxQwB85tN4R7NrNzZ5CSGoFupU+lSLyEMPfCigZSz+h5mYDBQUXRcQTs4+/3SrtqlRcZBB1fd rOt98qdOJxcxT6yzI/OT9OuiDx3uNRQN8P3V1VtEMTF67v/7w/4BDRDhfzJnaLkAAAAldEVYdGRh dGU6Y3JlYXRlADIwMjEtMTEtMDZUMDQ6MjA6MDErMDA6MDDEAggrAAAAJXRFWHRkYXRlOm1vZGlm eQAyMDIxLTExLTA2VDA0OjIwOjAxKzAwOjAwtV+wlwAAAABJRU5ErkJggg== X-Now-Playing: AGF & Various's _arachnesound_: "Hermaphroditus" In-Reply-To: <87k0hmgre3.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 05 Nov 2021 23:38:12 +0100") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-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:278842 Archived-At: Lars Ingebrigtsen writes: > There's no limit to the number of these strings that fonts support, so > if this hypothetical minor mode were to "list them all", it'd > basically be the same as running all text through harfbuzz. Which we > don't want to do in general. Ergo the need to have a per-font > ligature table. Well, that doesn't follow. Once we have a way to dump the ligature tables, we know what ligatures the fonts the user has loaded have (in total). 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. And since it's harmless (just takes a bit more time) to give a sequence to hb_shape for a font that doesn't have the ligature, we don't need a per-font thing. But the user may want to switch ligatures off completely, or per a buffer/mode basis, so we do need some extra support for that. The primary thing here, though, is to get at the ligature data in an efficient manner. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no