freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] [PATCH] [type1] Ensure mm_axis_unmap() always returns an FT_F


From: James Cloos
Subject: [ft-devel] [PATCH] [type1] Ensure mm_axis_unmap() always returns an FT_Fixed
Date: Fri, 28 Nov 2008 16:45:13 -0500
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

type1/t1load.c:mm_axis_unmap() is declared to return an FT_Fixed;
the MM blend_points[] is FT_Fixed* whereas the design_points[] is FT_Long*.

Therefore, mm_axis_unmap() should return blend rather than design points.

diff -uNr --show-c-function a/freetype2/src/type1/t1load.c 
b/freetype2/src/type1/t1load.c
--- a/freetype2/src/type1/t1load.c      2008-11-17 15:41:05.858472832 -0500
+++ b/freetype2/src/type1/t1load.c      2008-11-28 16:35:48.014448760 -0500
@@ -230,7 +230,7 @@
 
 
     if ( ncv <= axismap->blend_points[0] )
-      return axismap->design_points[0];
+      return axismap->blend_points[0];
 
     for ( j = 1; j < axismap->num_points; ++j )
     {
@@ -249,7 +249,7 @@
       }
     }
 
-    return axismap->design_points[axismap->num_points - 1];
+    return axismap->blend_points[axismap->num_points - 1];
   }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]