[HarfBuzz] How to get hb_face_t and hb_font_t without Freetype?
Behdad Esfahbod
behdad at behdad.org
Fri May 24 18:34:34 UTC 2019
On Fri, May 24, 2019 at 2:23 PM Eli Zaretskii <eliz at 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20190524/1d047202/attachment.html>
More information about the HarfBuzz
mailing list