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 havent missed the tutorials right? Theyre 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:[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.htm l#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.
_______________________________________________ Freetype mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype
