[ft] Performance problem in getting string width

2006-09-28 Thread perlamahesh
Hi All, I have modified ftstring.c according to my environment . For drawing a string freetype has to do kerning and it has create a new bitmap for each character. But for width calculation of a string also it is doing the same computations. For getting width of the string I dont want any

[ft] Memory leak in ftstring demo program

2006-09-26 Thread perlamahesh
Hi All, I have used freetype 2.1.10 and ft2demos2.1.10 . In that I have used the ftstring demo program . But in that program there is a memory leak . The following is the Call stack Main render_string FT_Glyph_To_Bitmap FT_Render_Glyph_Internal renderer-render( this is calling

[ft] Memory leaks in initFreetype and newFace APIs

2006-09-22 Thread perlamahesh
HI All, I am calling FT_Init_FreeType() and FT_New_Face() APIs while initialization of freetype, but when closing the application what are the APIs that I should call to free the memory allocated in the above 2 APIs. Please let me know if anybody knows. Regards, Perla Mahesh

[ft] Problem with text color

2006-09-11 Thread perlamahesh
Hi All, With gray-scale font I am getting a buffer . Each byte in the buffer has 0 to 255 levels of gray values. I am doing raster operation using this buffer to my device screen to draw the font. But the problem is how can I draw different colors using this gray values. I mean rgb(