[HarfBuzz] Clear buffer contents without clearing direction or script

Behdad Esfahbod behdad.esfahbod at gmail.com
Fri Jul 1 18:45:15 UTC 2016


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/631926dc/attachment.html>


More information about the HarfBuzz mailing list