[HarfBuzz] Kerning at the end of a line vs. line breaks
Lóránt Pintér
lorant.pinter at prezi.com
Wed Oct 24 15:54:00 PDT 2012
That would be great. It would mean less work for me to implement of course, but more importantly, with the JS port performance is key, and not having to re-shape everything twice would be really important for us.
If there's a way I can help make this happen, let me know.
--
Lóci
On Wednesday, October 24, 2012 at 10:53 PM, Behdad Esfahbod wrote:
> On 12-10-24 09:33 AM, Lóránt Pintér wrote:
> > Having this would be wonderful. Is there a plan to do this in the near future,
> > maybe before 1.0?
> >
>
>
> It's probably two hours to get this working... I'll try to prioritize it.
>
> behdad
>
>
> > --
> > Lorant
> >
> > On Wednesday, October 24, 2012 at 6:23 PM, Behdad Esfahbod wrote:
> >
> > > On 12-10-23 10:43 PM, Konstantin Ritt wrote:
> > > > 2012/10/23 Behdad Esfahbod <behdad at behdad.org <mailto: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 :)
> > > >
> > >
> > >
> > > No. Unicode segmentation algorithm is not really helpful here. What HarfBuzz
> > > can tell you is this: for each position in the text, it can tell you whether
> > > breaking the string here and shaping the two sides separately and
> > > concatenating the resulting glyphstrings will result in the same glyphstring
> > > that you get if you shape the full string. No other code can tell you that,
> > > since it depends on how the font lookups work.
> > >
> > > behdad
> > >
> > > > Konstantin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20121025/f41211f8/attachment.html>
More information about the HarfBuzz
mailing list