Commit 70d6f38ed21582305cd1499718e45f4b33bb4eb2

Tom Kacvinsky 2001-03-19T13:44:15

Change units per EM assignment in cff_parse_font_bbox().

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/cff/cffparse.c b/src/cff/cffparse.c
index 3f4dabc..ec20f3e 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 )
       {