shithub: freetype+ttf2subf

Download patch

ref: bdcfd5246deac5077364436264eab93e91feb84b
parent: 5441897bcbd419e455c7600ca096ec2a24741694
author: Tom Kacvinsky <[email protected]>
date: Wed Mar 7 15:53:08 EST 2001

Minor correction in T1_Init_Face: we must wait until parse_font_bbox
is changed before we use logical shift rights in the assignments of
`root->ascender', `root->descender', and `root->max_advance_width'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -274,14 +274,14 @@
       if ( !root->units_per_EM )
         root->units_per_EM = 1000;
 
-      root->ascender     = face->type1.font_bbox.yMax >> 16;
-      root->descender    = face->type1.font_bbox.yMin >> 16;
+      root->ascender     = (FT_Short)face->type1.font_bbox.yMax;
+      root->descender    = (FT_Short)face->type1.font_bbox.yMin;
       root->height       = ( ( root->ascender - root->descender ) * 12 ) / 10;
 
       /* now compute the maximum advance width */
 
 
-      root->max_advance_width = face->type1.font_bbox.xMax >> 16;
+      root->max_advance_width = (FT_Short)face->type1.font_bbox.xMax;
       {
         FT_Int  max_advance;