Tiny fix for font height calculation.

This commit is contained in:
Marisa the Magician 2022-09-22 17:49:39 +02:00
commit b247654600

View file

@ -444,7 +444,7 @@ int main( int argc, char **argv )
// third pass to compute the maximum cell size (for memory allocation)
if ( autosize )
{
h = fnt->size->metrics.height>>6;
h = (fnt->size->metrics.height>>6)+1;
if ( FT_IS_FIXED_WIDTH(fnt) )
{
w = fnt->size->metrics.max_advance>>6;