|
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_arithmeticFT2 has some very nice functions for using fixed-point. See http://www.freetype.org/freetype2/docs/reference/ft2-computations.html .
[Prev in Thread] | Current Thread | [Next in Thread] |