|
From: | Dave Calkins |
Subject: | Re: [ft] anti-aliasing question |
Date: | Sun, 07 Feb 2010 18:50:22 -0500 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 |
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?
[Prev in Thread] | Current Thread | [Next in Thread] |