freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] anti-aliasing question


From: Werner LEMBERG
Subject: Re: [ft] anti-aliasing question
Date: Mon, 08 Feb 2010 07:07:46 +0100 (CET)

>> 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?
>
> Also, whats the difference between having
> FT_CONFIG_OPTION_SUBPIXEL_RENDERING turned on or off wrt the format
> of the bitmap in memory?

The format is the same.  Using an LCD rendering mode triples the
horizontal buffer length.

> The header says R=G=B as opposed to what?

If this flag isn't set, you'll get, for example, instead of a 5-pixel
buffer (without LCD rendering)

  ABCDE

a buffer which triples each pixel value:

  AAABBBCCCDDDEEE

According to the information in the web, patents on the ClearType idea
itself aren't valid due to prior art.  However, patents on the LCD
colour filtering used in Windows are definitely valid (well, if you
live in a country where software patents are valid).


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]