[ft] Performance problem in getting string width
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 bitmap, I just want left, top, and width for each character. Is there any code snippet which can help me in improving the performance of calculating the width for a string. Regards, Perla Mahesh This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! ___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype
[ft] Memory leak in ftstring demo program
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_smooth_render) ft_smooth_render_generic FT_ALLOC ft_alloc malloc This memory is not getting freed any where. If anybody knows the solution please help me . Regards, Perla Mahesh This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! ___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype
[ft] Memory leaks in initFreetype and newFace APIs
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 This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! ___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype
[ft] Problem with text color
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( 0, 0, 0 ) gives black and rgb(255, 255, 255) gives white and rgb( 150, 150 ,150) gives some light black or gray color. These 0, 255, 150 are gray values of the buffer. Using the above logic I am able to draw black text, I am not able to draw other text colors. Is there any algorithm to get native color value using gray values. I mean if I want to draw with pink color rgb_new( 0, 0, 0 ) should give pink color, rgb_new( 150, 50,150) Should give light pink color and rgb_new( 255, 255, 255) should give very light pink color. Then I will get a smooth border for the text with pink color. Please help me how to draw with different colors. Regards, Perla Mahesh This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! ___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype