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: Mon, 18 May 2020 15:38:21 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 18/05/2020 15.19, Pip Cet wrote:
> So such clusters would be marked as atomic? I like Stefan's proposal,
> and maybe it's what LibreOffice actually does: at large font sizes,
> the horizontal division of "subglyphs" seems off.

Yup, that's what Firefox and LibreOffice do.

>>> If Harfbuzz could tell us more precisely how to divide the glyph into
>>> subglyphs, we could do a better job, of course.
>>
>> I don't think it's possible because AFAIK fonts don't store this
>> information.
> 
> Well, they should!

They can, but few do (the LigatureCaretList subtable within the GDEF table)

>> It should be possible, of course, to have a private
>> database of such offsets, but I don't really see how it could work in
>> general.
> 
> 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




reply via email to

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