Re: Generic data/callback (was Re: [ft-devel] Cache subsystem question

2010-09-30 Thread Gernot Reisinger
Hi Behdad, for my embedded project your proposal might be over the top :-) Werner, may I suggest to enhance the synopsis section of FTC documentation. cited from FTC documentation: Second, the cache calls, only when needed, a client-provided function to convert a FTC_FaceID into a new FT_Face

Re: Generic data/callback (was Re: [ft-devel] Cache subsystem question

2010-09-30 Thread Werner LEMBERG
Werner, may I suggest to enhance the synopsis section of FTC documentation. cited from FTC documentation: Second, the cache calls, only when needed, a client-provided function to convert a FTC_FaceID into a new FT_Face object. The latter is then completely managed by the cache, including

Re: [ft-devel] Cache subsystem question

2010-09-27 Thread Behdad Esfahbod
On 09/26/10 11:17, Gernot Reisinger wrote: Hi there, I am using Freetype for an embedded project and I have an issue with the cache subsystem. In my FTC_Face_Requester callback I create the fonts from memory with FT_New_Memory_Face. The font memory is dynamically allocated. I understand

Re: [ft-devel] Cache subsystem question

2010-09-27 Thread Gernot Reisinger
Hi Behdad, perfekt solution for my problem. I was not aware of the finalizer callback. Thanks so much! Gernot 2010/9/27 Behdad Esfahbod beh...@behdad.org On 09/26/10 11:17, Gernot Reisinger wrote: Hi there, I am using Freetype for an embedded project and I have an issue with the cache

Re: [ft-devel] Cache subsystem question

2010-09-27 Thread Werner LEMBERG
In my FTC_Face_Requester callback I create the fonts from memory with FT_New_Memory_Face. The font memory is dynamically allocated. I understand that FT_Face objects are managed by the cache subsystem including FT_Face destruction with FT_Done_Face. As there is no way to detect when

[ft-devel] Cache subsystem question

2010-09-26 Thread Gernot Reisinger
Hi there, I am using Freetype for an embedded project and I have an issue with the cache subsystem. In my FTC_Face_Requester callback I create the fonts from memory with FT_New_Memory_Face. The font memory is dynamically allocated. I understand that FT_Face objects are managed by the cache