shithub: freetype+ttf2subf

Download patch

ref: 5d362b6b4432d08526f366415b1336fe7533db0a
parent: 00169a309e8fc6e106f8e4a00681112207f1a59a
author: Tom Kacvinsky <[email protected]>
date: Sat Mar 10 14:08:44 EST 2001

Changed parse_font_bbox to use FT_Fixed values for the bbox
assignment, and use rounded values instead.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -859,15 +859,15 @@
                          T1_Loader*  loader )
   {
     T1_ParserRec*  parser = &loader->parser;
-    FT_Short       temp[4];
+    FT_Fixed       temp[4];
     FT_BBox*       bbox   = &face->type1.font_bbox;
 
 
-    (void)T1_ToCoordArray( parser, 4, temp );
-    bbox->xMin = temp[0];
-    bbox->yMin = temp[1];
-    bbox->xMax = temp[2];
-    bbox->yMax = temp[3];
+    (void)T1_ToFixedArray( parser, 4, temp, 0 );
+    bbox->xMin = FT_RoundFix( temp[0] );
+    bbox->yMin = FT_RoundFix( temp[1] );
+    bbox->xMax = FT_RoundFix( temp[2] );
+    bbox->yMax = FT_RoundFix( temp[3] );
   }