From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Ligatures (was: Unify the Platforms: Cairo+FreeType+Harfbuzz Everywhere (except TTY)) Date: Fri, 22 May 2020 10:32:30 -0400 Message-ID: <56f7539c-49c3-11d2-9b90-f7d82ddca552@gmail.com> References: <20200517165953.000044d2@web.de> <83lflqblp0.fsf@gnu.org> <83ftbybio3.fsf@gnu.org> <83zha69xs2.fsf@gnu.org> <83367x9qeq.fsf@gnu.org> <0ccae2a4-533b-d15c-2884-c2f00b067776@gmail.com> <83wo5987mk.fsf@gnu.org> <99d4beed-88ae-b5cd-3ecb-a44325c8a1dc@gmail.com> <20200518215908.GA57594@breton.holly.idiocy.org> <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> <83y2pk2nzy.fsf@gnu.org> <895400a0-a87a-70fe-b6ca-85c14c4745fa@gmail.com> <83a7202gc3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="1426"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: alan@idiocy.org, pipcet@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 22 16:33:19 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 1jc8jf-0000I0-9s for ged-emacs-devel@m.gmane-mx.org; Fri, 22 May 2020 16:33:19 +0200 Original-Received: from localhost ([::1]:45968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jc8je-0000WP-CZ for ged-emacs-devel@m.gmane-mx.org; Fri, 22 May 2020 10:33:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc8iv-0007X9-MR for emacs-devel@gnu.org; Fri, 22 May 2020 10:32:33 -0400 Original-Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]:40889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jc8iv-0001w5-1y; Fri, 22 May 2020 10:32:33 -0400 Original-Received: by mail-qv1-xf2e.google.com with SMTP id l3so4790664qvo.7; Fri, 22 May 2020 07:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DFZwsbWo7uVyMWj2wQqkff3Yx+OlpOxryQTykzGgUEY=; b=M67XjUus4fqHPSRd1N/1CJZTjjo8YuqjC6ZGs769KWJXddTLzKCtvg2/JHNMfxlU1B pYwqcLE9RkcCE7tCAylp/X/bn6C/Sh3AzSivaaGeDwc1BjPlsYYILZLcz5Qc340xwPEM 74mdXKp3gr5+jCfKokzErekl9t6SALMMq7gI/Rn9sEUvkdOv+7zobuxgkWNs6Pru/SGF GLHR3/uS5rxMPVcRa+jW2ixAq0vEQn/Ujrj/eGG+bl/sYj9EW3gVN99tXQxcxM6T7KfT esRBR6OqKKo+ErRk0oA5FelP20wLSdlB4Oq5ZXszeTGpLw9fpyit1kQpRlRtjgDny8vk AP+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DFZwsbWo7uVyMWj2wQqkff3Yx+OlpOxryQTykzGgUEY=; b=JHPldDKJlAfIJgp6V0yLpNg9BxYPMUn6ZA3v3HpjSvIteENhAs4fJEjycq7UQSzURh NFs4cIq2Z2ExvfucE0fkuALguFQb+gqk5gGjoI0LrS5Qv2L/RsiZe/Q/OZcz5P8tiaSc +rrNG04I+EP2k1u31KucJXi4OduQet9KlxSL/vzvqojs/pP34VLNZPXLUPRgHi00DI/X Ae1rH1HMBb/Kef0/YDi6MYlz9KC0LCT3yjToeuy32H8DdFL8PwqCrZz0d/Us+CK1b/Z+ GjkPBkyNoFUMBoYUiJL+TVLs7KlUHRDFVz976qH1FM47S6ZllPDV5jxvgoBeVsUKTV8/ Xsfw== X-Gm-Message-State: AOAM532Hsc2eyf+eVPlaM1Wq4eAQb2Q1BaEFsLFL8KNqP0WmzwkhEBiM VHyFVpdGKTYMmDVtBMOqHUGeQFlH X-Google-Smtp-Source: ABdhPJzRZdsC7ahC2/gh8NeDm46NUZY3EFpBKnX03VGFDqyreuwq1E9b8Wvi0cIGGtUeCUDcZKyBpg== X-Received: by 2002:a0c:9141:: with SMTP id q59mr3963059qvq.58.1590157951646; Fri, 22 May 2020 07:32:31 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:bda5:ac5c:1de0:b677? ([2601:184:4180:66e7:bda5:ac5c:1de0:b677]) by smtp.googlemail.com with ESMTPSA id 99sm7595543qte.93.2020.05.22.07.32.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 May 2020 07:32:31 -0700 (PDT) In-Reply-To: <83a7202gc3.fsf@gnu.org> Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::f2e; envelope-from=cpitclaudel@gmail.com; helo=mail-qv1-xf2e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:251231 Archived-At: On 22/05/2020 10.29, Eli Zaretskii wrote: >> Cc: pipcet@gmail.com, alan@idiocy.org, emacs-devel@gnu.org >> From: Clément Pit-Claudel >> Date: Fri, 22 May 2020 09:26:05 -0400 >> >>> In general, I envision that people would use the font they find >>> acceptable for the ligatures they want/need in each mode or buffer >>> where they need that. If for some reason different fonts could >>> determine which ligatures you do NOT want to see, then I guess we will >>> have to provide some easy-to-use UI for that, which would manipulate >>> the relevant data structures under the hood. Alternatively each font >>> could require a separate composition function to go with it. >> >> It would be weird for Emacs to be the only program that requires re-encoding the entire ligature logic of each font it attempts to use. Different fonts offer different ligatures, and if I want to select a subset the font itself provides variants that let me do this. Meanwhile, I hope that we can make Emacs act like browsers or other editors in that if I select a font it will just, by default, use the ligatures that this font provides according to the logic embedded in the font. > > If this is a real problem, it should be possible to have a function > that will extract all the ligatures supported by a font, I think. > > But I don't think I agree with the "logic embedded in the font" part. > I think we should let the user control which ligatures are really > used. I agree. We should let them control the logic, but that doesn't mean we have to force them to do so; which means we need a way to extract that logic, somehow. My udnerstanding was that it could be quite complex, so there was no point in re-implementing it in ELisp.