freetype
[Top][All Lists]
Advanced

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

Re: [ft] Scaline for rasterizer?


From: Mickey Gabel
Subject: Re: [ft] Scaline for rasterizer?
Date: Tue, 08 Sep 2009 12:21:13 +0300
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Aya Koshigaya wrote:
Mhh ... okay, thanks :)

But how do I convert my value to a 26.6 float? And how do I store it in the rasterizer, since FT_POS is declared as "signed long".. not float..?

Thanks,
Aya

Fixed-point arithmetic is not very complicated to understand. It's mostly regular integer math with a fixed scaling.
You can start here: http://en.wikipedia.org/wiki/Fixed-point_arithmetic

FT2 has some very nice functions for using fixed-point. See http://www.freetype.org/freetype2/docs/reference/ft2-computations.html .







reply via email to

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