[cairo] Re: cairo_ft_font_destroy missing in CVS?
Ned Konz
ned at squeakland.org
Fri Oct 22 15:07:24 PDT 2004
On Friday 22 October 2004 2:59 pm, graydon hoare wrote:
> Ned Konz wrote:
> > Since cairo_ft_font_create() does a malloc, it seems like this would be a
> > good thing to have.
> >
> > Is someone working on it?
>
> cairo_ft_font_create is a special way of acquiring one of the general
> cairo_font_t objects. the resource it returns is managed by refcount,
> like any other font; you decrement that refcount with
> cairo_font_destroy. when the refcount drops to zero, a backend function
> is called (_cairo_ft_font_destroy, note leading underscore) which
> subsequently drops a reference to an entry in a shared pool of freetype
> resources. when those references drop to zero _destroy_font_val finally
> disposes of the freetype resource.
>
> many layers of caching, I know. but you shouldn't need to look beyond
> cairo_font_destroy as a user.
OK. I just got misled by seeing it in cairo.h, and I made a binding for it,
only to find out that it didn't exist.
Perhaps it should be removed from cairo.h if it's not needed?
--
Ned Konz
MetaMagix
Stanwood WA
(360) 629-1091
More information about the cairo
mailing list