Re: [ft-devel] [FYI] Re: Getting pathname from FT_Face (patch for future discussion)

2010-03-15 Thread Werner LEMBERG
Werner, except of the code size, do you have any concern about my patch? Everything looks fine. However, I have just skimmed it, without looking too much into the details. # One of my concern (except of the code size) is that APIs like # FT_Get_Path_From_Stream() is a bad idea from the

Re: [ft-devel] Determining Upper Bound of memory consumption for a system using FT cache subsystem

2010-03-15 Thread Maggy Anastasia
Hi Werner Thanks alot for the reply. I have looked at your suggestion and tried to understand how it works. I have one question regarding this. I understand that after we set env variable FT2_ALLOC_COUNT_MAX and FT2_DEBUG_MEMORY on runtime, the value for FT2_ALLOC_COUNT_MAX will be assigned to

[ft-devel] Re: [FYI] Re: Getting pathname from FT_Face (patch for future discussion)

2010-03-15 Thread mpsuzuki
On Mon, 15 Mar 2010 14:44:29 +0900 mpsuz...@hiroshima-u.ac.jp wrote: I will post about the code size evaluation. Here is the result by Linux/i386 gcc-4.4.2. My patch increases the code size about 1% - 2%. I think enable-by-default won't blow out most systems using FreeType2 under default config.

Re: [ft-devel] Re: [FYI] Re: Getting pathname from FT_Face (patch for future discussion)

2010-03-15 Thread Werner LEMBERG
Here is the result by Linux/i386 gcc-4.4.2. My patch increases the code size about 1% - 2%. This is more than I have expected. I think enable-by-default won't blow out most systems using FreeType2 under default config. OK. However, it would be nice if it is surrounded by FT_CONFIG_...

Re: [ft-devel] Determining Upper Bound of memory consumption for a system using FT cache subsystem

2010-03-15 Thread Werner LEMBERG
Does the above check aim to bound memory allocation to up to table-alloc_total_max? If that is the case, should the check be the following instead: if ( table-bound_total table-alloc_total_max - table-alloc_current (FT_ULong)size )

[ft-devel] Re: [FYI] Re: Getting pathname from FT_Face (patch for future discussion)

2010-03-15 Thread mpsuzuki
Werner, Now I'm reworking my patch to provide a single generic interface like this: /*/ /* */ /* Function

Re: [ft-devel] [FYI] Re: Getting pathname from FT_Face (patch for future discussion)

2010-03-15 Thread Behdad Esfahbod
On 03/15/2010 01:44 AM, mpsuz...@hiroshima-u.ac.jp wrote: On Sun, 14 Mar 2010 21:19:44 -0400 Behdad Esfahbod beh...@behdad.org wrote: On 03/11/2010 02:47 AM, mpsuz...@hiroshima-u.ac.jp wrote: Attached (get-stream-info.diff) is a revised patch with a feature to get the info about the origin

Re: [ft-devel] Re: [FYI] Re: Getting pathname from FT_Face (patch for future discussion)

2010-03-15 Thread Behdad Esfahbod
On 03/15/2010 08:36 AM, mpsuz...@hiroshima-u.ac.jp wrote: FT_EXPORT( FT_Error ) FT_Object_Get_Property( FT_Librarylibrary, FT_Pointerobject, const char* object_type, const char*

[ft-devel] Reference count in FreeType2

2010-03-15 Thread mpsuzuki
On Mon, 15 Mar 2010 22:55:52 -0400 Behdad Esfahbod beh...@behdad.org wrote: In another note, since you seem to be writing a lot of FreeType patches recently, it doesn't hurt to ask: have you ever considered implementing reference counts for FreeType? I remember you had ever mentioned the lack of

[ft-devel] Re: Reference count in FreeType2

2010-03-15 Thread Behdad Esfahbod
On 03/15/2010 11:43 PM, mpsuz...@hiroshima-u.ac.jp wrote: However, yet I've not figured out the detailed usecase for reference counter of FreeType2 (so I cannot write short testing code), thus I cannot start working just now. If you know any softwares showing the problem caused by the lack of