freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Re: [ft] Creating an [OT]TF font from BDF font


From: Chia-I Wu
Subject: Re: [ft-devel] Re: [ft] Creating an [OT]TF font from BDF font
Date: Mon, 19 Dec 2005 10:20:06 +0800
User-agent: Mutt/1.5.11

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




reply via email to

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