I want to render font to FBO buffer, and i need a correct width and height (pixel to pixel) of all symbols and all area that's rendering.
Till now i use this function.
void SizeForString( FTSimpleLayout *simpleLayout, LPWSTR str, int &width, int &height )
FTBBox size_ = simpleLayout->BBox( str );
width = (int) round( size_.upper.X() - size_.lower.X() );
height = (int) round( size_.upper.Y() - size_.lower.Y() );
I can compile the source version 2.1.3(have compiled year ago when was some problem with Z position).
What i must do, to get a correct coordinates?