[cairo] font lifetime

Alexander Larsson alexl at redhat.com
Wed Jan 26 03:47:00 PST 2005


I'm making xpdf work with the new font changes, and I have a question.

If i call cairo_ft_font_create_for_ft_face with a FT_Face. How do I know
how long i need to keep the FT_Face around? The cairo_font_t object is
passed around internally in cairo, and can end up in all sorts of caches
and stuff, complicating its lifecycle.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl at redhat.com    alla at lysator.liu.se 
He's a shy alcoholic senator looking for 'the Big One.' She's a warm-hearted 
kleptomaniac fairy princess with a flame-thrower. They fight crime! 




More information about the cairo mailing list