[HarfBuzz] Clear buffer contents without clearing direction or script
Kelvin Ma
kelvinsthirteen at gmail.com
Fri Jul 1 18:52:24 UTC 2016
that’s what I’m doing right now, i was just wondering if there was a
shortcut because I often have to do this when reshaping part of a run so I
figure it might be good to have it as an api function
On Fri, Jul 1, 2016 at 2:45 PM, Behdad Esfahbod <behdad.esfahbod at gmail.com>
wrote:
> On Jul 1, 2016 11:37 AM, "Kelvin Ma" <kelvinsthirteen at gmail.com> wrote:
> >
> > Is there a way to remove all the codepoints from a buffer object while
> leaving the direction, script, and language intact?
>
> No. Those properties depend on buffer text, si it doesn't make sense to
> clear text but not those. It's two lines to capture them and set them
> back. HarfBuzz is a library, it provides building blocks that enable what
> people need to do, not every imaginable combination of lines of code
> someone might need...
>
> > buffer_clear_contents() clears that data too.
> >
> > _______________________________________________
> > HarfBuzz mailing list
> > HarfBuzz at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/harfbuzz
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20160701/c3b6a10f/attachment.html>
More information about the HarfBuzz
mailing list