emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ligatures


From: Clément Pit-Claudel
Subject: Re: Ligatures
Date: Tue, 19 May 2020 11:30:22 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 19/05/2020 10.55, Pip Cet wrote:
> On Mon, May 18, 2020 at 7:40 PM Clément Pit-Claudel
> <address@hidden> 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 ^^



reply via email to

[Prev in Thread] Current Thread [Next in Thread]