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 Date: Tue, 19 May 2020 11:30:22 -0400 Message-ID: <87f0bfdd-668e-a5f9-6825-818d93a8a03d@gmail.com> 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: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112584"; 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: emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 19 17:31:45 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 1jb4DY-000TBz-4q for ged-emacs-devel@m.gmane-mx.org; Tue, 19 May 2020 17:31:44 +0200 Original-Received: from localhost ([::1]:59834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb4DW-0002wm-VK for ged-emacs-devel@m.gmane-mx.org; Tue, 19 May 2020 11:31:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb4CJ-0001C1-51 for emacs-devel@gnu.org; Tue, 19 May 2020 11:30:27 -0400 Original-Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]:39463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jb4CH-0003Zq-KZ for emacs-devel@gnu.org; Tue, 19 May 2020 11:30:26 -0400 Original-Received: by mail-qt1-x82e.google.com with SMTP id l1so11455723qtp.6 for ; Tue, 19 May 2020 08:30:25 -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=wGWBBwpPFfhpCRmJo6WoEq1mW/ytGWXbfsvOf4id/Xs=; b=nD7S4u9p0hsxspfyHrXpdO0PvZWJ+Tuvvne4iMq7rlkneNgCL21ys2lpjXFGvuIX81 0Y9XF5Vk7SKnJJuv5XULz5/JOr/Zq+TR+nACDNgpXtj0NWE37DTIrHDwV94BMb9Xh3NN UOJiq4MEGQyUc5p+8WyBlCviVrSAHewUzTAvWsikET4pu+cLIMHXchBCXc/saenog0b8 LJEICVTQrGUwGkpRwMjQSCfrIl3FNBjI4uyCn2H+sOTkn+q9oo1Cd68HOG1W2eAQtNgB 6C++e9OjWZxsNUnPSUbQonojK5AwzWpcZvOXao74aXExsqkfN/KgUsPMMCsvaNvvL5PZ z8UA== 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=wGWBBwpPFfhpCRmJo6WoEq1mW/ytGWXbfsvOf4id/Xs=; b=hxiGWg1NjwWsY95Qnjr8yvLAkcPVkno8dDsWolVhD0Mz1QEy9EsuTd04s/6+FNy+3o kZNrZRuXFXdwlInJRJgUa/5d3ENqPCLL0jJRF3SC+ratVkOJI/aFK7JbN6IxRyXCdg1B rY0oAbbN5FzCDqSHqLJnKvd+LdqwYL5MTkk58vzWeqXDHlNN2ikGElWewCC0yyJzI+9C 1yQFk6nw46kY76rNIHpBV+iVgjTpSlH2PcjDhVF7NkIpZTnBdx4SI975c86inGdAKJo8 vH8idXOHZJc8gMWwRrkM+DiTY1dMHOEFgcuPwLhodrdaZFztYc2vkZ0Vs2xdudMsl/WO UFKg== X-Gm-Message-State: AOAM5309SW4qCadsjghZ2AZEq9WwSJRtJscUpO/gXkSyxvT8IYbuNjlv uf1od+K3cQJEVV58H0kKMKAQ6/kq X-Google-Smtp-Source: ABdhPJwoeyz63DIBqV2k34YXf8eePlaPQJplY8AmHaPwsFjq6FrqQTJHp9HZDeLZN4ia2k2bIuBrpg== X-Received: by 2002:ac8:4894:: with SMTP id i20mr240122qtq.85.1589902224481; Tue, 19 May 2020 08:30:24 -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 a29sm11520981qka.90.2020.05.19.08.30.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 May 2020 08:30:24 -0700 (PDT) In-Reply-To: Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::82e; envelope-from=cpitclaudel@gmail.com; helo=mail-qt1-x82e.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:250948 Archived-At: On 19/05/2020 10.55, Pip Cet wrote: > On Mon, May 18, 2020 at 7:40 PM Clément 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). Are you worried about the height of the box? For the width part, isn't it just the difference between two consecutive carets? > 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. No opinions there ^^