From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: Ligatures Date: Tue, 19 May 2020 14:55:15 +0000 Message-ID: References: <20200517124125.000013a4@web.de> <97C7EAB7-10AB-4702-ABC8-EB6C1C50ABDB@gnu.org> <20200517165953.000044d2@web.de> <83lflqblp0.fsf@gnu.org> <83ftbybio3.fsf@gnu.org> <83zha69xs2.fsf@gnu.org> <83367x9qeq.fsf@gnu.org> <83y2pp88lw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="85848"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 19 16:56:47 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 1jb3fj-000MFl-Kd for ged-emacs-devel@m.gmane-mx.org; Tue, 19 May 2020 16:56:47 +0200 Original-Received: from localhost ([::1]:48964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb3fi-0002m6-Ka for ged-emacs-devel@m.gmane-mx.org; Tue, 19 May 2020 10:56:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb3er-0000tH-Lx for emacs-devel@gnu.org; Tue, 19 May 2020 10:55:53 -0400 Original-Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]:44834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jb3eq-0003Qw-Vs for emacs-devel@gnu.org; Tue, 19 May 2020 10:55:53 -0400 Original-Received: by mail-ot1-x32d.google.com with SMTP id f18so7196932otq.11 for ; Tue, 19 May 2020 07:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4Ep/+x9dH5PxZbHiVN6f0s/NzAkk8W2F9U288g8/9t4=; b=n03CEWjADJbGBs953K8WIO5dYyyPWeII+XZT45m9T7BvKMwXYnRXQnFmZMzmwOLtO6 LrcCANgll+t+Lu1wqgDQB+h0zQohKvgyy5xJD7HSAKJ0L3t6nKt634b9Cf4xhJDwwiSl MTYjPxPx86Lz2vc6ywaW5Vvf5odOJyyPjfXoyPh679cjYjvrqtf8d5REPRjRhKs7ZRwM qGlIdXjXEXJrFaDt/4PF6lrIuy+WWThmyryGlhTG1bdw4ToF5wzWwV36JCeGOXi578Yi MJ45zvuXMutoRxpU33gl7ET6/UXSY3YAumTF6TPY9fa3nCP8e4v+CNJBG6n21oocEmyv VHbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4Ep/+x9dH5PxZbHiVN6f0s/NzAkk8W2F9U288g8/9t4=; b=ELCUfvq89hzQv+qMPJwz65ktI6+EWGTx8m5lNczF9bIpPyFrEXoxtnanl16ffmrV4G lGN7lsnH6HajG8XtQ5VKrIvh9dPiMgGiBbpXPBNpA8K8fMHNVOV/6AymV0w6m9dtLap8 kx7YgJzfkwZP6x7ctJWh/N12NbwahpL0fUWEFvC/458XTkEIaAiK3Sj3XBXHziX56sSd 48Ugw/Hp2oXZ0x0hIhphKUnbdZjrN7dV9f4/R7jFaN0X6pRLz4snsJaE1HC0Bc+k4Bie m4sHlFgy3Vv88yT93zm5iAuIjOcZApbZa54HAoFHzZOSrdwFmRJi0i9jLM9YYlEm6oiv nzfQ== X-Gm-Message-State: AOAM532AGE+X/uW3wpqQvWBZooa2UVgW+llDxv+7CG4EhcWrVGznEt7v Yzkk8l5x/smp8YilhFQjPivjJTSBfJwQJ28Uxuk= X-Google-Smtp-Source: ABdhPJxGNlMB2A/Okb/MF9ru0/FbbNt9mMUzeBwUP2wRvmvbODXnFRO+MpQYd0c5M0jLlrmG6vfQs3OSLBo9KrV7+cs= X-Received: by 2002:a9d:7a50:: with SMTP id z16mr11106633otm.292.1589900151781; Tue, 19 May 2020 07:55:51 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=pipcet@gmail.com; helo=mail-ot1-x32d.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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_BL=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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:250941 Archived-At: On Mon, May 18, 2020 at 7:40 PM Cl=C3=A9ment Pit-Claudel wrote: > > And this is where it gets back to "let's not hardcode the dependency > > on Harfbuzz and FreeType, because other backends might actually give > > us the information we need". > > Harfbuzz can give us this info: hb_ot_layout_get_ligature_carets Thanks, I hadn't looked there! So Harfbuzz provides a non-core API which, after a separate call for each cluster, allows us to split up a glyph into non-overlapping bounding boxes of the same height (the information returned is one-dimensional, and intended for carets, not for Emacs-style box cursors). I don't see how that API design is so great we should hardcode dependencies on it, though I do agree it's sufficient to work with. Again, this isn't about some exotic use case: I open a buffer, type "ffi", and hit C-b twice. What should happen? AFAIU, people are still seriously considering the possibility that all of "ffi" would be covered by the cursor. I hope I'm misunderstanding that, because it's so obviously the wrong thing to do in this case.