[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freetype] A little help will go a long way.
From: |
Nicholas Christopher |
Subject: |
[Freetype] A little help will go a long way. |
Date: |
Fri, 14 Dec 2001 12:16:27 -0500 |
Freetype team,
I'm having a problem rotating a text string about a center cx, cy through
the function
// set up transform (a rotation here)
matrix.xx = (FT_Fixed)( cos(angle)*0x10000);
matrix.xy = (FT_Fixed)(-sin(angle)*0x10000);
matrix.yx = (FT_Fixed)( sin(angle)*0x10000);
matrix.yy = (FT_Fixed)( cos(angle)*0x10000);
FT_Glyph_Transform( glyph, &matrix, 0 );
Then rotate my points from where to draw my glyph bitmap
xx = xoff + (x * sin(radian))
yy = yoff + (x * cos(radian));
When I rotate my x/y coords I get a jittery result, obviously my approach
is wrong
so I guess my question is : What is the right approach to rotating a string
of text?
NC
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freetype] A little help will go a long way.,
Nicholas Christopher <=