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

2005-12-19 Thread George Williams
On Sun, 2005-12-18 at 18:20, Chia-I Wu wrote: FT_Get_BDF_Fontname(face) FT_Get_BDF_Comments(face) Couldn't they just be treated like normal properties? Well they aren't in the bdf file format, they are handled quite differently, so the bdf parser handles them differently. The pcf file format

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

2005-12-19 Thread George Williams
On Sun, 2005-12-18 at 18:20, Chia-I Wu wrote: FT_Get_BDF_Fontname(face) FT_Get_BDF_Comments(face) Couldn't they just be treated like normal properties? Ok, I have removed those entry points and made them behave like normal properties. This is incompatible with previous behavior. But since

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

2005-12-18 Thread George Williams
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 ) ) { /* do something; */ } /* to get property count...

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

2005-12-17 Thread Chia-I Wu
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

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

2005-12-17 Thread George Williams
Drat. PCF fonts include the FONT keyword and value in the list of properties. Strictly speaking FONT is not a bdf property (it comes outside of the STARTPROPERTIES list) -- however to do round trip conversion it is necessary. The value is available internally as face-bdffont-name, but I don't see