From ea48f4588a352381758b85ae29bf8f314f419148 Mon Sep 17 00:00:00 2001 From: Tom Kacvinsky Date: Sat, 17 Mar 2001 16:38:49 +0000 Subject: [PATCH] In function cff_parse_font_bbox(), obtain rounded FT_Fixed values for the bounding box numbers. --- src/cff/cffparse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cff/cffparse.c b/src/cff/cffparse.c index 4295a0db8..91653af13 100644 --- a/src/cff/cffparse.c +++ b/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; }