From 70d6f38ed21582305cd1499718e45f4b33bb4eb2 Mon Sep 17 00:00:00 2001 From: Tom Kacvinsky Date: Mon, 19 Mar 2001 13:44:15 +0000 Subject: [PATCH] Change units per EM assignment in cff_parse_font_bbox(). --- src/cff/cffparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cff/cffparse.c b/src/cff/cffparse.c index 3f4dabcb2..ec20f3ed1 100644 --- a/src/cff/cffparse.c +++ b/src/cff/cffparse.c @@ -338,7 +338,8 @@ temp = ABS( matrix->yy ); - *upm = (FT_UShort)FT_DivFix( 0x10000L, FT_DivFix( temp, 1000 ) ); + *upm = (FT_UShort)( FT_DivFix( 0x10000L, + FT_DivFix( temp, 1000 ) ) >> 16 ); if ( temp != 0x10000L ) {