|
From: | Julian Gardner |
Subject: | [ft] wrong positions of characters |
Date: | Sat, 26 Aug 2006 02:30:46 +0100 |
I have got the following code running and drawing
my text
...
err = FT_Load_Glyph( face,
char_index, FT_LOAD_TARGET_NORMAL)
if( err)
{
.....
}
err = FT_Render_Glyph(
face->glyph, FT_RENDER_MODE_MONO);
if( err)
{
.....
}
I draw the font to my output but all the chars are in different positions,
not lined up on then screen.
I have looked at the slot structure and I have varying bitmap_left,
bitmap_top.
eg
PleaseWait gives
P (2,16) l (2,17) e (1,12) a (1,12) s (0,12) e (1,12) W (0,16) a (1,12) i
(2,17) t (0,16)
now at the moment i copy from 0,0 to slot->bitmap.width,
slot->bitmap.rows
What should i do with the bitmap_left and bitmap_top to get my text on the
same line?
joolz
ps Still nobody to help with the Jam build problem!!!
|
[Prev in Thread] | Current Thread | [Next in Thread] |