In function cff_parse_font_bbox(), obtain rounded FT_Fixed values for the

bounding box numbers.
VER-2-0-4-PATCH
Tom Kacvinsky 24 years ago
parent df5cea1b3e
commit 6456da1235
  1. 8
      src/cff/cffparse.c

@ -374,10 +374,10 @@
if ( parser->top >= parser->stack + 4 )
{
bbox->xMin = cff_parse_num( data++ );
bbox->yMin = cff_parse_num( data++ );
bbox->xMax = cff_parse_num( data++ );
bbox->yMax = cff_parse_num( data );
bbox->xMin = FT_Round_Fix( cff_parse_fixed( data++ ) );
bbox->yMin = FT_Round_Fix( cff_parse_fixed( data++ ) );
bbox->xMax = FT_Round_Fix( cff_parse_fixed( data++ ) );
Bbox->yMax = FT_Round_Fix( cff_parse_fixed( data ) );
error = CFF_Err_Ok;
}

Loading…
Cancel
Save