|
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!!!
|
_______________________________________________ Freetype mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype
