Re: [ft-devel] controlling FreeType modules

2012-08-22 Thread Werner LEMBERG
What are the void* pointers typically expected to point to...? Property data structures. As I suppose these void* values are often pointers to some malloced memory in many cases, how is it expected that resource management of that memory is done...? I.e., when the a list gets destroyed

Re: [ft-devel] controlling FreeType modules

2012-08-22 Thread Miles Bader
Werner LEMBERG w...@gnu.org writes: What are the void* pointers typically expected to point to...? Property data structures. As I suppose these void* values are often pointers to some malloced memory in many cases, how is it expected that resource management of that memory is done...?

Re: [ft-devel] controlling FreeType modules

2012-08-22 Thread Werner LEMBERG
FreeType. If there is ever a need to pass a new string to the library (for which I currently don't have a use case), the data will be copied. Wait how does that work? That suggests that freetype will copy any structure passed in into malloced memory or something; otherwise, one

Re: [ft-devel] controlling FreeType modules

2012-08-22 Thread Miles Bader
2012/8/22 Werner LEMBERG w...@gnu.org: But since (AFAICT) the property mechanism is generic, the type of the data structure wouldn't be known except to the eventual caller of FT_Property_Get. Given this, how can FT_Property_Set know the size of the data structure passed in, to malloc/copy it?