On Sun, Dec 18, 2005 at 02:07:50PM -0800, George Williams wrote:
> On Sat, 2005-12-17 at 18:42, Chia-I Wu wrote:
> > 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 ) )
> > FT_Get_BDF_Property_Count( face );
> 
> How about:
> FT_Get_BDF_PropertyCount(face)
Good to me.  I was thinking about charmap iteration yesterday and I
suggested taking property count out of bdf iterator because charmap
iterator cannot know the char count.

BTW,  if you look into FT_Face, you'll find that `size_list' is an
FT_List, `glyph' is a custom list, and `charmaps' is a dynamic array,
while they all do the same thing :-)
> FT_Iterate_BDF_Property(face,void *,BDF_IteratorFunc)
>       Calls the iterator function once with each property.
> +   typedef FT_Error
> +   (*BDF_IteratorFunc)( FT_Face                 face,
> +                        void *                  data,
> +                        const char*             prop_name,
> +                        const BDF_PropertyRec*  aproperty);
s/Iterat(e|or)/ForEach/... well, I must be affected by gtk+ :-)
> FT_Get_BDF_Fontname(face)
> FT_Get_BDF_Comments(face)
Couldn't they just be treated like normal properties?

-- 
Regards,
olv


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

Reply via email to