shithub: freetype+ttf2subf

Download patch

ref: e5b8bbb892cca22b323fa5ee7f70f7012e12a6bb
parent: 5d362b6b4432d08526f366415b1336fe7533db0a
author: Tom Kacvinsky <[email protected]>
date: Sat Mar 10 14:10:25 EST 2001

In function T1_Init_Face, changed the assignment code for ascender,
descender, and 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     = (FT_Short)face->type1.font_bbox.yMax;
-      root->descender    = (FT_Short)face->type1.font_bbox.yMin;
+      root->ascender     = face->type1.font_bbox.yMax >> 16;
+      root->descender    = face->type1.font_bbox.yMin >> 16;
       root->height       = ( ( root->ascender - root->descender ) * 12 ) / 10;
 
       /* now compute the maximum advance width */
 
 
-      root->max_advance_width = (FT_Short)face->type1.font_bbox.xMax;
+      root->max_advance_width = face->type1.font_bbox.xMax >> 16;
       {
         FT_Int  max_advance;