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

Behdad Esfahbod behdad at behdad.org
Tue Oct 23 13:01:09 PDT 2012


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.

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
> 



More information about the HarfBuzz mailing list