On 2/7/2010 9:00 AM, Werner LEMBERG wrote:
Is there an LCD mode which does not grow the image size?
No.  You need three colour channels for LCD rendering.


What is the format of the bitmap memory when FT_PIXEL_MODE_LCD is in place? The docs say 8-bit, but it being 3x as wide suggests maybe 1 byte for each color component?

I see FT_RENDER_MODE_LCD and LCD_V which both indicate that they
produce larger-than-normal bitmaps.  I tried FT_RENDER_MODE_LCD and
of course the text glyphs were all 3 times as wide (as the docs
indicate).  Am I supposed to then shrink them back down?
No, you are supposed to apply a colour filter.



What would the pseudo code be for that? I tried calling FT_Library_SetLcdFilter, but the resultant image is still 3x as wide. Is the idea that the color filter samples bytes from the bitmap and results in a new bitmap which is the original width?

Is there some other call I need to make to enable the color filter?



_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to