On Sat, Dec 17, 2005 at 04:01:38PM -0800, George Williams wrote:
> Ok, here is an iterator.
>    FT_GetIterate_BDF_Property(FT_Face,BDF_PropertyIteratorRec *aprop)
> To get the first property set,
>    aprop->index = 0
> (each call will automagically increment)
> 
> aprop->cnt      will be set to the number of properties in the face
> aprop->name     the name string
> aprop->property standard BDF_PropertyRec with the value.
I suggest the following APIs, making iterator merely an iterator:

/* to iterate... */
FT_Get_BDF_Iterator( face, &iter );
while ( FT_Iterare_BDF_Property( face, &iter, &name, &aprop ) )
{
        /* do something; */
}

/* to get property count... */
FT_Get_BDF_Property_Count( face );

-- 
Regards,
olv


_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to