[HarfBuzz] Kerning at the end of a line vs. line breaks

Konstantin Ritt ritt.ks at gmail.com
Tue Oct 23 22:43:16 PDT 2012


2012/10/23 Behdad Esfahbod <behdad at behdad.org>:
> On 12-10-17 08:22 PM, Lóránt Pintér wrote:
>>
>> This could work, but I would basically have to shape the whole text twice.
>> That doesn't sound right. Or does it?
>
> It actually is what you need to do, and what Pango does for example.  Now, I
> like to add API to HarfBuzz that would improve this, and you would essentially
> just need to reshape the cluster at the linebreak position, but for now, you
> need to reshape each line.

Are you saying about re-introducing the Unicode Segmentation algorithm
implementation to Harfbuzz? Hope you're not :)

Konstantin

>
> behdad
>
>> Another issue is, say, there is a context-sensitive substitution that applies
>> only if there is a space before "1". When I shape the whole text, the lookup
>> will trigger for the "1" in "1T", because it has a space before. But when I
>> re-shape only "1T" at the end of the line, the lookup won't be applied.
>>
>> I feel like I'm on the wrong track here. Am I missing something obvious?
>>
>> --
>> Thanks,
>> Lorant
>>
>>
>>
>> _______________________________________________
>> HarfBuzz mailing list
>> HarfBuzz at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz



More information about the HarfBuzz mailing list