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

2010-03-13 Thread Werner LEMBERG
Attached (get-stream-info.diff) is a revised patch with a feature to get the info about the origin of the memory in FT_Stream object, which is inspired by recent discussion with Behdad about mprotect() to the buffer in FT_Stream object. Sample code (get-stream-info.c) invokes the new APIs

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

2010-03-13 Thread Werner LEMBERG
(1) static array: currently we know that all memory consumption by freetype is done through malloc calls and its variants. However, is there any other memory used in freetype, such as global arrays, which are used for memory allocation? If so, do they need any kind of configuration? Yes,

Re: [ft-devel] Questions regarding memory consumption related to FT's glyph image cache lookups

2010-03-13 Thread Werner LEMBERG
Part of the experiments I did was calling FTC_ImageCache_LookupScaler() several times to obtain different glyphs from the same face and the same size. I use FT_LOAD_FORCE_AUTOHINT|FT_LOAD_RENDER flag as the input of the call. [...] I can't answer this question, sorry, since my knowledge of

[ft-devel] FT_Bitmap_Convert and 1bpp bitmaps

2010-03-13 Thread Kamil Hornicek
Hi, when trying to fix some alignment related issues in our project I stumbled upon FT_Bitmap_Convert. It works ok for FT_PIXEL_MODE_GRAY but I ran into problems with FT_PIXEL_MODE_MONO ie. 1bpp bitmaps. The code for the actual conversion is as follows (ftbitmap.c ~ line 440): for ( j =