Re: how to clear the freetype face cache?
Cosmin Apreutesei <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAKJdRamOo72YponzbP33+PzY_VCviCK-HcKAP=8L0xav38r+7Q@mail.gmail.com> |
> You can register a "destructor" function (calling FT_Done_Face) after you create cairo_font_face_t with cairo_font_face_set_user_data. Thanks, I missed that part of the manual. I'll do that. I would still like to have the possibility to clear cairo's font cache because in my scenario (Lua binding of freetype and cairo) objects are tied to the garbage collector so FT_Done_Library is called automatically when the program ends. Now I have to say in the manual that you are not allowed free a FT_Library object once you tie freetype fonts to cairo, so you better untie it from the garbage collector after you create it. It looks like an unnecessary hack from the user's pov. -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo