shithub: freetype+ttf2subf

Download patch

ref: 8f9b7f50a513675e9a907ae4393d8d914635a23d
parent: b2cb6ce6c4d7d7bd25818d22e60378574692ce8d
author: Werner Lemberg <[email protected]>
date: Sat Nov 29 12:35:58 EST 2008

* src/type/t1load.c (mm_axis_unmap): Revert previous patch and fix
it correctly by using FT_INT_TO_FIXED (FreeType expects 16.16 values
in the /BlendDesignMap space).

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-11-29  James Cloos  <[email protected]>
 
+	* src/type/t1load.c (mm_axis_unmap): Revert previous patch and fix
+	it correctly by using FT_INT_TO_FIXED (FreeType expects 16.16 values
+	in the /BlendDesignMap space).
+
+2008-11-29  James Cloos  <[email protected]>
+
 	* src/type1/t1load.c (mm_axis_unmap): `blend_points' is FT_Fixed*,
 	whereas `design_points' is FT_Long*.  Therefore, return blend rather
 	than design points.
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -230,7 +230,7 @@
 
 
     if ( ncv <= axismap->blend_points[0] )
-      return axismap->blend_points[0];
+      return FT_INT_TO_FIXED( axismap->design_points[0] );
 
     for ( j = 1; j < axismap->num_points; ++j )
     {
@@ -249,7 +249,7 @@
       }
     }
 
-    return axismap->blend_points[axismap->num_points - 1];
+    return FT_INT_TO_FIXED( axismap->design_points[axismap->num_points - 1] );
   }