[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] FT_LOAD_TARGET_LCD
From: |
Werner LEMBERG |
Subject: |
Re: [ft] FT_LOAD_TARGET_LCD |
Date: |
Thu, 26 Apr 2007 08:31:56 +0200 (CEST) |
> Im having trouble creating "cleartype" quality fonts. I've read the
> docs and need to know how the freetype buffer is packed so I can
> extract the red,green and blues.
By default, FreeType doesn't do any separation into red, green, and
blue values. It just returns a bit map which has a larger horizontal
(or vertical) resolution, namely three times larger. Filtering
happens only if you call FT_Library_SetLcdFilter.
> The buffer is packed differently the flag "FT_LOAD_TARGET_LCD" is
> set. It states in the documentation that the width of the buffer is
> multiplied by three. How to index that buffer?
Have a look into the file graph/grblit.c of the ft2demos package to
see how to handle such bitmaps.
Werner