freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Re: Reference count in FreeType2


From: Werner LEMBERG
Subject: [ft-devel] Re: Reference count in FreeType2
Date: Tue, 16 Mar 2010 07:05:56 +0100 (CET)

> Use case is very simple: with the FreeType stack, all of hb_face_t,
> PangoFont, and cairo_scaled_font_t all can use keeping a pointer to
> an FT_Face.  But alas, one cannot do that safely since you never
> know when the face is going away.

Again: What would you like as an interface?  Something like a function
`FT_Face_IsAlive', returning a boolean?

> If there was refcounts in FreeType, harfbuzz could increment the
> refcount on the FT_Face it keeps a pointer to.

Since my knowledge is quite poor here, can you point me to a library
which implements something along this?


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]