Yes I've been using the tutorials exclusively. However, I haven't seen it describe the details of pixel coverage. Perhaps I missed it? So for aliased text, the only two pixel values I should be seeing for gray are black and white, correct? And for anti-aliased text I should see any range of color? So in essence, the bitmap I get back *is* the alpha channel it seems.
On Wed, Mar 25, 2009 at 11:36 PM, Erik Möller <[email protected]> wrote: > Correct, freetype never dabbles with colors, only pixel coverage. So when > drawing an AA glyph you take the gray output from freetype and use as the > alpha channel or luminance tex. What to put in the color components is up to > you. > > > > You haven’t missed the tutorials right? They’re invaluable when you get > started. http://www.freetype.org/freetype2/docs/tutorial/step1.html > > > > Cheers, > > > > Erik Möller, > > Timetrap > > http://www.timetrap.se > > http://www.emberwind.se > > > > > > *From:* [email protected] [mailto: > freetype-bounces+erik <freetype-bounces%2Berik>[email protected]] *On > Behalf Of *Robert Dailey > *Sent:* den 26 mars 2009 01:41 > *To:* freetype > *Subject:* [ft] Please explain pixel modes > > > > I'm new to freetype and I am currently doing my best to learn how to use > it. > > > > I was looking over the Pixel Mode documentation located here: > > > http://freetype.sourceforge.net/freetype2/docs/reference/ft2-basic_types.html#FT_Pixel_Mode > > > > I'm having a bit of trouble understanding these pixel modes. It seems to me > like everything comes in as grayscale and you have to apply a hue to the > pixels yourself to give it color. Is this true? If not, what are the gray > modes for? Are these masks that represent the alpha channel of each glyph? > > > > Help is appreciated. > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 3963 (20090325) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com >
_______________________________________________ Freetype mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype
