freetype
[Top][All Lists]
Advanced

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

Re: [ft] Please explain pixel modes


From: Robert Dailey
Subject: Re: [ft] Please explain pixel modes
Date: Thu, 26 Mar 2009 10:11:55 -0500

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 <address@hidden> 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: freetype-bounces+erik=timetrap.se@nongnu.org [mailto:freetype-bounces+erik=timetrap.se@nongnu.org] 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:

 

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


reply via email to

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