freetype
[Top][All Lists]
Advanced

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

Re: [ft] 26.6 format


From: Brady Duga
Subject: Re: [ft] 26.6 format
Date: Fri, 22 Jan 2010 12:30:29 -0800

It's a fixed-point value. Another common format is 16.16. You can read more about it at http://en.wikipedia.org/wiki/Fixed-point_arithmetic and there are other resources around on the web. Probably the easiest way to think about it is a 26.6 number is actually 1/64th. So, "1" means 1/64, "32" means 32/64 = .5, "64" is 64/64 = 1, etc. It is 1/64 because 6 bits are being used for the decimal portion (2^6). 

--Brady

On Jan 22, 2010, at 11:44 AM, samaram s wrote:

Thanks Bruce..
If you dont mind,Can you explain me little bit more.

On Fri, Jan 22, 2010 at 1:53 PM, Bruce Long <address@hidden> wrote:
In a 32 bit word, 26 bits are used to represent the pixel coordinate and 6 represent the sub-pixel position.

Bruce

On Fri, Jan 22, 2010 at 11:50 AM, samaram s <address@hidden> wrote:
Hi,

Could anybody explain me what is 26..6 format represents?I read the docs but couldn't able to analyze.

Thanks in advance for the help

Regards,
sam

_______________________________________________
Freetype mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/freetype




--
Give me immortality or give me death!

_______________________________________________
Freetype mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/freetype


reply via email to

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