Re: how to clear the freetype face cache?

Bill Spitzak <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On 06/08/2013 07:26 AM, Cosmin Apreutesei wrote:
> Hi,
>
> When my app closes I need to FT_Done_Face on all used faces so I can
> FT_Done_Freetype, otherwise I get a crash. But cairo still holds
> multiple references to each cairo_font_face_t created with
> cairo_ft_font_face_create_for_ft_face (one for every seleted size as I
> can see) and the doc says I shouldn't FT_Done_Face until those
> references are gone.
>
> So my question is: is there any way to tell cairo to clear its font
> cache and release those cairo_font_face_t objects?
>
> Thanks,
> Cosmin.
>

How about just not call FT_Done_Freetype?

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.