shithub: freetype+ttf2subf

Download patch

ref: 3798110fc7cbeb16e452578ec19b17441a0dd4fb
parent: 8cfe002db957efbb34f504e2ebd4be69dfc7c524
author: David Turner <[email protected]>
date: Mon Mar 19 06:34:49 EST 2001

fixed a small bug

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -200,8 +200,8 @@
       /* Set Units per EM based on FontMatrix values.  We set the value to */
       /* `1000/temp_scale', because temp_scale was already multiplied by   */
       /* 1000 (in t1_tofixed(), from psobjs.c).                            */
-      root->units_per_EM = (FT_UShort)FT_DivFix( 0x10000L,
-                                      FT_DivFix( temp_scale, 1000 ) );
+      root->units_per_EM = (FT_UShort)( FT_DivFix( 0x10000L,
+                                        FT_DivFix( temp_scale, 1000 ) ) >> 16 );
 
       /* we need to scale the values by 1.0/temp[3] */
       if ( temp_scale != 0x10000L )