On Fri, May 24, 2019 at 2:23 PM Eli Zaretskii <e...@gnu.org> wrote: > > But the question about hb_face_t management is still not entirely > clear. I don't really need hb_face_t, I only create it as an > intermediate step towards hb_font_t. So my question is: once I have > hb_font_t, can I destroy the hb_face_t I used to create hb_font_t? If > not, how do I arrange for hb_face_t to be destroyed when the > corresponding hb_font_t is destroyed? >
Yes. Just destroy anything as soon as you personally don't need it. Destroy hb_blob_t after you pass it to hb_face_create...(). Destroy hb_face_t as soon as you pass it to hb_font_create(). HB uses reference-counting to actually destroy things when they are not used anymore. -- behdad http://behdad.org/
_______________________________________________ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/harfbuzz